View Single Post
  #12  
Old 06-26-2008, 04:26 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

I think getTarget() could be exploited so maybe use one of the hatelist options GetHateTop() GetHateMost() or GetHateRandom()
Code:
spells.cpp

Option C:
else if (IsBeneficialSpell(spell_id) && spelltar->IsEngaged()) {
        Mob* targetstarget = spelltar->GetHateTop();
        targetstarget->AddToHateList(this->CastToMob(), CheckHealAggroAmount(spell_id));
}
Reply With Quote