Timers and some more loading stuff

This commit is contained in:
KimLS
2015-06-20 19:44:00 -07:00
parent 635ac692ea
commit d5098a56e0
18 changed files with 199 additions and 79 deletions
+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