Fixed mentor problem with awakened Ertheia characters.
Contributed by rocknowx.
This commit is contained in:
@@ -36,7 +36,6 @@ import com.l2jserver.gameserver.instancemanager.MentorManager;
|
|||||||
import com.l2jserver.gameserver.model.L2Mentee;
|
import com.l2jserver.gameserver.model.L2Mentee;
|
||||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||||
import com.l2jserver.gameserver.model.base.ClassLevel;
|
|
||||||
import com.l2jserver.gameserver.model.entity.Message;
|
import com.l2jserver.gameserver.model.entity.Message;
|
||||||
import com.l2jserver.gameserver.model.events.EventType;
|
import com.l2jserver.gameserver.model.events.EventType;
|
||||||
import com.l2jserver.gameserver.model.events.ListenerRegisterType;
|
import com.l2jserver.gameserver.model.events.ListenerRegisterType;
|
||||||
@@ -154,7 +153,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
|
|||||||
|
|
||||||
if (event.equalsIgnoreCase("exchange"))
|
if (event.equalsIgnoreCase("exchange"))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, MENTEE_CERT) && (player.getLevel() >= MAX_LEVEL) && (player.getClassId().level() == ClassLevel.AWAKEN.ordinal()))
|
if (hasQuestItems(player, MENTEE_CERT) && (player.getLevel() >= MAX_LEVEL) && player.isAwaken())
|
||||||
{
|
{
|
||||||
takeItems(player, MENTEE_CERT, 1);
|
takeItems(player, MENTEE_CERT, 1);
|
||||||
giveItems(player, DIPLOMA, 40);
|
giveItems(player, DIPLOMA, 40);
|
||||||
|
Reference in New Issue
Block a user