Fixed players getting stuck in casting intention.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment 2019-09-30 00:47:24 +00:00
parent 2ffca1188e
commit 7792b3abde

View File

@ -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())