mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 11:27:17 +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
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user