Ticket #60: AATimerReset.diff

File AATimerReset.diff, 1.4 KB (added by ptarp, 11 years ago)

code fix

  • zone/spells.cpp

    old new  
    725725                CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot); 
    726726        } 
    727727         
     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 
    728734        ZeroCastingVars();      // resets all the state keeping stuff 
    729735         
    730736        mlog(SPELLS__CASTING, "Spell %d has been interrupted.", spellid); 
  • zone/StringIDs.h

    old new  
    1010#define SPELL_DOES_NOT_WORK_PLANE       107             //This spell does not work on this plane. 
    1111#define CANT_SEE_TARGET                         108             //You cannot see your target. 
    1212#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. 
    1314#define TARGET_TOO_FAR                          124             //Your target is too far away, get closer! 
    1415#define PROC_TOOLOW                                     126             //Your will is not sufficient to command this weapon. 
    1516#define PROC_PETTOOLOW                          127             //Your pet's will is not sufficient to command its weapon.