Ticket #60: AATimerReset.diff
File AATimerReset.diff, 1.4 KB (added by ptarp, 11 years ago) |
---|
-
zone/spells.cpp
old new 725 725 CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot); 726 726 } 727 727 728 if(casting_spell_type == 1 && IsClient()) { //Rest AA Timer on failed cast 729 CastToClient()->SendAATimer(casting_spell_timer - pTimerAAStart, 0, 0xFFFFFF); 730 CastToClient()->Message_StringID(15,ABILITY_FAILED); 731 CastToClient()->GetPTimers().Clear(&database, casting_spell_timer); 732 } 733 728 734 ZeroCastingVars(); // resets all the state keeping stuff 729 735 730 736 mlog(SPELLS__CASTING, "Spell %d has been interrupted.", spellid); -
zone/StringIDs.h
old new 10 10 #define SPELL_DOES_NOT_WORK_PLANE 107 //This spell does not work on this plane. 11 11 #define CANT_SEE_TARGET 108 //You cannot see your target. 12 12 #define MGB_STRING 113 //The next group buff you cast will hit all targets in range. 13 #define ABILITY_FAILED 116 //Your ability failed. Timer has been reset. 13 14 #define TARGET_TOO_FAR 124 //Your target is too far away, get closer! 14 15 #define PROC_TOOLOW 126 //Your will is not sufficient to command this weapon. 15 16 #define PROC_PETTOOLOW 127 //Your pet's will is not sufficient to command its weapon.