Fixed using summon stop and attack actions increasing attack speed.
This commit is contained in:
@@ -688,7 +688,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
{
|
||||
// If PlayerInstance is dead or the target is dead, the action is stoped
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
@@ -697,7 +696,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
{
|
||||
// If PlayerInstance is dead or the target is dead, the action is stoped
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
@@ -706,7 +704,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
{
|
||||
// If PlayerInstance is dead or the target is dead, the action is stoped
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
@@ -715,7 +712,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
{
|
||||
// If PlayerInstance is dead or the target is dead, the action is stoped
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
@@ -724,7 +720,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
{
|
||||
// If PlayerInstance is dead or the target is dead, the action is stoped
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
@@ -733,7 +728,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
{
|
||||
// If PlayerInstance is dead or the target is dead, the action is stoped
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
@@ -765,7 +759,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
|
||||
if (((PlayerInstance) this).isCursedWeaponEquiped() && (((PlayerInstance) target).getLevel() <= Config.MAX_LEVEL_NEWBIE))
|
||||
{
|
||||
((PlayerInstance) this).sendMessage("Can't attack a newbie player using a cursed weapon.");
|
||||
@@ -802,7 +795,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
// You can't make an attack with a fishing pole.
|
||||
((PlayerInstance) this).sendPacket(SystemMessageId.YOU_LOOK_ODDLY_AT_THE_FISHING_POLE_IN_DISBELIEF_AND_REALIZE_THAT_YOU_CAN_T_ATTACK_ANYTHING_WITH_THIS);
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
@@ -832,7 +824,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
{
|
||||
// Cancel the action because the PlayerInstance have no arrow
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_RUN_OUT_OF_ARROWS));
|
||||
return;
|
||||
|
Reference in New Issue
Block a user