Fixed abort casting when player dies.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment 2021-03-08 02:08:29 +00:00
parent f1eb56cafa
commit f333d813ee
19 changed files with 76 additions and 57 deletions

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);

View File

@ -119,12 +119,13 @@ public abstract class Playable extends Creature
setDead(true);
}
abortAttack();
abortCast();
// Set target to null and cancel Attack or Cast
setTarget(null);
// Abort casting after target has been cancelled.
abortAttack();
abortCast();
// Stop movement
stopMove(null);