Changed L2Character setIsRunning visibility to private.

This commit is contained in:
MobiusDev
2017-11-26 14:31:26 +00:00
parent e016154fef
commit 67c073b42e
203 changed files with 637 additions and 469 deletions

View File

@@ -358,7 +358,7 @@ public final class Baium extends AbstractNpcAI
{
mob.clearAggroList();
}
mob.setIsRunning(true);
mob.setRunning();
mob.addDamageHate(_baium, 0, 999);
mob.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, _baium);
}

View File

@@ -186,7 +186,7 @@ public final class SummonNpc extends AbstractEffect
{
npc.scheduleDespawn(_despawnDelay);
}
npc.setIsRunning(false); // TODO: Fix broadcast info.
npc.setWalking(); // TODO: Fix broadcast info.
}
}
}

View File

@@ -22,13 +22,20 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
/**
* Run/Walk player action handler.
* @author UnAfraid
* @author Mobius
*/
public final class RunWalk implements IPlayerActionHandler
{
@Override
public void useAction(L2PcInstance activeChar, ActionDataHolder data, boolean ctrlPressed, boolean shiftPressed)
{
activeChar.setIsRunning(!activeChar.isRunning());
if (activeChar.isRunning())
{
activeChar.setWalking();
}
else
{
activeChar.setRunning();
}
}
}

View File

@@ -683,7 +683,7 @@ public final class Q00227_TestOfTheReformer extends Quest
case OL_MAHUM_BETRAYER:
{
startQuestTimer("DESPAWN", 5000, npc, null, true);
npc.setIsRunning(true);
npc.setRunning();
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MOVE_TO);
npc.getVariables().set("SPAWNED", 0);
break;