Use StopCasting instead of Interrupt on SpellFinished failure

Most of these failures already show a message, live doesn't double
up on failure message + interrupt message, so lets not

There are a few logic error returns, but those really shouldn't happen
This commit is contained in:
Michael Cook (mackal) 2016-08-29 13:27:42 -04:00
parent 95ea61114a
commit ea1ae1a0a4

View File

@ -1310,7 +1310,9 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
if( !SpellFinished(spell_id, spell_target, slot, mana_used, inventory_slot, resist_adjust) )
{
Log.Out(Logs::Detail, Logs::Spells, "Casting of %d canceled: SpellFinished returned false.", spell_id);
InterruptSpell();
// most of the cases we return false have a message already or are logic errors that shouldn't happen
// if there are issues I guess we can do something else, but this should work
StopCasting();
return;
}