mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-10 10:12:24 +00:00
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:
parent
95ea61114a
commit
ea1ae1a0a4
@ -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) )
|
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);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user