From 07950b7a5805164490aae5de216991c11e2f3bcf Mon Sep 17 00:00:00 2001 From: mackal Date: Sat, 16 Feb 2013 19:47:12 -0500 Subject: [PATCH] Fix calc of resuse timers on multi-rank AAs --- zone/AA.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zone/AA.cpp b/zone/AA.cpp index c3c1b9217..f3fb7cfad 100644 --- a/zone/AA.cpp +++ b/zone/AA.cpp @@ -1347,7 +1347,8 @@ void Client::SendAA(uint32 id, int seq) { if(value > 0) { - const AA_DBAction *caa = &AA_Actions[saa->id][value - 1]; + // AA_Action stores the base ID + const AA_DBAction *caa = &AA_Actions[saa->id - value + 1][value - 1]; if(caa && caa->reuse_time > 0) saa->spell_refresh = CalcAAReuseTimer(caa); @@ -1965,4 +1966,4 @@ AA_SwarmPetInfo::~AA_SwarmPetInfo() Mob *AA_SwarmPetInfo::GetOwner() { return entity_list.GetMobID(owner_id); -} \ No newline at end of file +}