Implemented NPC Special Ability 41 'Allow To Tank', gives NPC opportunity to take aggro over a client in melee range.

This commit is contained in:
KayenEQ
2014-11-15 23:40:13 -05:00
parent 94231b62a3
commit 01c580224d
4 changed files with 12 additions and 3 deletions
+7
View File
@@ -403,6 +403,13 @@ Mob *HateList::GetTop(Mob *center)
}
}
if (!isTopClientType) {
if (top->GetSpecialAbility(ALLOW_TO_TANK)){
isTopClientType = true;
topClientTypeInRange = top;
}
}
if(!isTopClientType)
return topClientTypeInRange ? topClientTypeInRange : nullptr;