Actually remove expendable AAs from the DB

This commit is contained in:
Michael Cook (mackal)
2016-08-07 14:32:30 -04:00
parent e5746c3b2e
commit e86d11250b
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -1240,6 +1240,10 @@ void Mob::ExpendAlternateAdvancementCharge(uint32 aa_id) {
CastToClient()->GetEPP().expended_aa += r->cost;
}
}
if (IsClient()) {
auto c = CastToClient();
c->RemoveExpendedAA(ability->first_rank_id);
}
aa_ranks.erase(iter.first);
}