mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-29 02:02:17 +00:00
Timers and some more loading stuff
This commit is contained in:
1 parent
635ac692ea
commit
d5098a56e0
18 files changed
+199
-79
No files matched your search
+2
-6
@@ -818,12 +818,8 @@ void Mob::InterruptSpell(uint16 message, uint16 color, uint16 spellid)
|
||||
}
|
||||
|
||||
if(casting_spell_aa_id && IsClient()) { //Rest AA Timer on failed cast
|
||||
AA::Rank *rank = zone->GetAlternateAdvancementRank(casting_spell_aa_id);
|
||||
if(rank) {
|
||||
CastToClient()->Message_StringID(MT_SpellFailure, ABILITY_FAILED);
|
||||
CastToClient()->SendAlternateAdvancementTimer(rank->spell_type, 0, 0x7fffffff);
|
||||
CastToClient()->GetPTimers().Clear(&database, rank->spell_type + pTimerAAStart);
|
||||
}
|
||||
CastToClient()->Message_StringID(MT_SpellFailure, ABILITY_FAILED);
|
||||
CastToClient()->ResetAlternateAdvancementTimer(casting_spell_aa_id);
|
||||
}
|
||||
|
||||
ZeroCastingVars(); // resets all the state keeping stuff
|
||||
|
||||
Reference in new issue
Block a user