Fixed players getting stuck in casting intention.
Contributed by Sahar.
This commit is contained in:
parent
2ffca1188e
commit
7792b3abde
@ -8553,6 +8553,12 @@ public class PlayerInstance extends Playable
|
||||
setQueuedSkill(null, false, false);
|
||||
}
|
||||
|
||||
if (!checkUseMagicConditions(skill, forceUse, dontMove))
|
||||
{
|
||||
setIsCastingNow(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if the target is correct and Notify the AI with AI_INTENTION_CAST and target
|
||||
WorldObject target = null;
|
||||
switch (skill.getTargetType())
|
||||
|
Loading…
Reference in New Issue
Block a user