Timers and some more loading stuff

This commit is contained in:
KimLS committed 2015-06-20 19:44:00 -07:00
1 parent 635ac692ea
commit d5098a56e0
18 files changed
+199 -79

No files matched your search

+2 -6
View File
@@ -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