Fix calc of resuse timers on multi-rank AAs

This commit is contained in:
mackal 2013-02-16 19:47:12 -05:00
parent b14519b1f5
commit 07950b7a58

View File

@ -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);
}
}