Remove unneeded calls to DoAnim() for spells/bardsong (#1290)

* Removed DoAnim() call from spells and bard song.  Tested on rof2 and titanium

Co-authored-by: Noudess <noudess@gmail.com>
This commit is contained in:
Paul Coene 2021-03-10 00:07:30 -05:00 committed by GitHub
parent 435bac5599
commit ac4a993259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2389,8 +2389,6 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui
} }
} }
DoAnim(spells[spell_id].CastingAnim, 0, true, IsClient() ? FilterPCSpells : FilterNPCSpells);
// Set and send the nimbus effect if this spell has one // Set and send the nimbus effect if this spell has one
int NimbusEffect = GetNimbusEffect(spell_id); int NimbusEffect = GetNimbusEffect(spell_id);
if(NimbusEffect) { if(NimbusEffect) {
@ -2640,8 +2638,6 @@ bool Mob::ApplyNextBardPulse(uint16 spell_id, Mob *spell_target, CastingSlot slo
} }
} }
//do we need to do this???
DoAnim(spells[spell_id].CastingAnim, 0, true, IsClient() ? FilterPCSpells : FilterNPCSpells);
if(IsClient()) if(IsClient())
CastToClient()->CheckSongSkillIncrease(spell_id); CastToClient()->CheckSongSkillIncrease(spell_id);