mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Move triggered on cast things to after the spell
This appears how live does it
This commit is contained in:
parent
20f5c42c3e
commit
17c45c8d36
@ -1268,6 +1268,14 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, uint16 slot,
|
||||
}
|
||||
}
|
||||
|
||||
// we're done casting, now try to apply the spell
|
||||
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();
|
||||
return;
|
||||
}
|
||||
|
||||
if(IsClient()) {
|
||||
CheckNumHitsRemaining(NumHit::MatchingSpells);
|
||||
TrySympatheticProc(target, spell_id);
|
||||
@ -1277,14 +1285,6 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, uint16 slot,
|
||||
|
||||
TryTriggerOnCast(spell_id, 0);
|
||||
|
||||
// we're done casting, now try to apply the spell
|
||||
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();
|
||||
return;
|
||||
}
|
||||
|
||||
if(DeleteChargeFromSlot >= 0)
|
||||
CastToClient()->DeleteItemInInventory(DeleteChargeFromSlot, 1, true);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user