Fixed abort casting when player dies.
Contributed by Sahar.
This commit is contained in:
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
@@ -119,12 +119,13 @@ public abstract class Playable extends Creature
|
|||||||
setDead(true);
|
setDead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abortAttack();
|
|
||||||
abortCast();
|
|
||||||
|
|
||||||
// Set target to null and cancel Attack or Cast
|
// Set target to null and cancel Attack or Cast
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|
||||||
|
// Abort casting after target has been cancelled.
|
||||||
|
abortAttack();
|
||||||
|
abortCast();
|
||||||
|
|
||||||
// Stop movement
|
// Stop movement
|
||||||
stopMove(null);
|
stopMove(null);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user