mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Clean up InterruptSpell
This commit is contained in:
+4
-5
@@ -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
|
||||
|
||||
if (IsBot()) {
|
||||
CastToBot()->SetCastedSpellType(UINT16_MAX);
|
||||
}
|
||||
auto bot = CastToBot();
|
||||
bot->SetCastedSpellType(UINT16_MAX);
|
||||
|
||||
if (IsBot() && IsValidSpell(spellid)) {
|
||||
if (CastToBot()->CheckSpellRecastTimer(spellid)) {
|
||||
CastToBot()->ClearSpellRecastTimer(spellid);
|
||||
if (IsValidSpell(spellid) && bot->CheckSpellRecastTimer(spellid)) {
|
||||
bot->ClearSpellRecastTimer(spellid);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user