Fixed a bug where people could switch classes and still be registered in olympiad.
Contributed by Sahar.
This commit is contained in:
		| @@ -24,6 +24,7 @@ import org.l2jmobius.gameserver.model.actor.Creature; | ||||
| import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; | ||||
| import org.l2jmobius.gameserver.model.effects.AbstractEffect; | ||||
| import org.l2jmobius.gameserver.model.items.instance.ItemInstance; | ||||
| import org.l2jmobius.gameserver.model.olympiad.OlympiadManager; | ||||
| import org.l2jmobius.gameserver.model.skills.Skill; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.AcquireSkillList; | ||||
| @@ -67,6 +68,11 @@ public class ClassChange extends AbstractEffect | ||||
| 					return; | ||||
| 				} | ||||
| 				 | ||||
| 				if (OlympiadManager.getInstance().isRegisteredInComp(player)) | ||||
| 				{ | ||||
| 					OlympiadManager.getInstance().unRegisterNoble(player); | ||||
| 				} | ||||
| 				 | ||||
| 				final Skill identifyCrisis = SkillData.getInstance().getSkill(IDENTITY_CRISIS_SKILL_ID, 1); | ||||
| 				if (identifyCrisis != null) | ||||
| 				{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment