Clean up InterruptSpell

This commit is contained in:
nytmyr
2025-02-02 08:22:24 -06:00
parent db9fe0f284
commit cbb619c2d9
+4 -5
View File
@@ -1257,12 +1257,11 @@ void Mob::InterruptSpell(uint16 message, uint16 color, uint16 spellid)
bool bard_song_mode = false; //has the bard song gone to auto repeat mode bool bard_song_mode = false; //has the bard song gone to auto repeat mode
if (IsBot()) { if (IsBot()) {
CastToBot()->SetCastedSpellType(UINT16_MAX); auto bot = CastToBot();
} bot->SetCastedSpellType(UINT16_MAX);
if (IsBot() && IsValidSpell(spellid)) { if (IsValidSpell(spellid) && bot->CheckSpellRecastTimer(spellid)) {
if (CastToBot()->CheckSpellRecastTimer(spellid)) { bot->ClearSpellRecastTimer(spellid);
CastToBot()->ClearSpellRecastTimer(spellid);
} }
} }