Proper summon intention after stun.
This commit is contained in:
@@ -945,12 +945,12 @@ public abstract class L2Summon extends L2Playable
|
||||
|
||||
/**
|
||||
* Performs an attack to the owner's target.
|
||||
* @param target the target to attack.
|
||||
*/
|
||||
public void doAttack()
|
||||
public void doSummonAttack(L2Object target)
|
||||
{
|
||||
if (_owner != null)
|
||||
{
|
||||
final L2Object target = _owner.getTarget();
|
||||
if (target != null)
|
||||
{
|
||||
setTarget(target);
|
||||
|
@@ -183,7 +183,7 @@ public final class RequestActionUse implements IClientIncomingPacket
|
||||
{
|
||||
if (summon.canAttack(_ctrlPressed))
|
||||
{
|
||||
summon.doAttack();
|
||||
summon.doSummonAttack(target);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -241,7 +241,7 @@ public final class RequestActionUse implements IClientIncomingPacket
|
||||
{
|
||||
if (summon.canAttack(_ctrlPressed))
|
||||
{
|
||||
summon.doAttack();
|
||||
summon.doSummonAttack(target);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user