Prevent spamming next target and attack to increase attack speed.
Contributed by Trance.
This commit is contained in:
parent
0daaf43bf7
commit
3c9e84dcd3
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,13 @@ public class PetAttack implements IPlayerActionHandler
|
|||||||
}
|
}
|
||||||
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
else if (pet.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (pet.isAttackingNow())
|
||||||
|
{
|
||||||
|
pet.abortAttack();
|
||||||
|
pet.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
pet.doAttack(player.getTarget());
|
pet.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,13 @@ public class ServitorAttack implements IPlayerActionHandler
|
|||||||
{
|
{
|
||||||
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
if (summon.canAttack(player.getTarget(), ctrlPressed))
|
||||||
{
|
{
|
||||||
|
// Prevent spamming next target and attack to increase attack speed.
|
||||||
|
if (summon.isAttackingNow())
|
||||||
|
{
|
||||||
|
summon.abortAttack();
|
||||||
|
summon.abortCast();
|
||||||
|
}
|
||||||
|
|
||||||
summon.doAttack(player.getTarget());
|
summon.doAttack(player.getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user