@Override
protected void thinkCast(boolean checkRange)
{
Player actor = getActor();
FlagItemAttachment attachment = actor.getActiveWeaponFlagAttachment();
if ((attachment != null) && !attachment.canCast(actor, _skill))
{
setIntention(AI_INTENTION_ACTIVE);
actor.sendActionFailed();
return;
}