bot crash fix (#1993)

This commit is contained in:
KayenEQ 2022-02-13 12:09:32 -05:00 committed by GitHub
parent dd6cde68bb
commit 03adf20fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2418,16 +2418,6 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui
case AECaster:
case AETarget:
{
#ifdef BOTS
if(IsBot()) {
bool StopLogic = false;
if(!this->CastToBot()->DoFinishedSpellAETarget(spell_id, spell_target, slot, StopLogic))
return false;
if(StopLogic)
break;
}
#endif //BOTS
// we can't cast an AE spell without something to center it on
assert(ae_center != nullptr);