mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 20:48:26 +00:00
[Rule] Remove hard coded initial aggro in favor or an adjustable Rule (#4333)
* [Rule] Remove hard coded initial aggro in favor or an adjustable Rule * Adjustments per comments
This commit is contained in:
+8
-4
@@ -3089,12 +3089,16 @@ void Mob::AddToHateList(Mob* other, int64 hate /*= 0*/, int64 damage /*= 0*/, bo
|
||||
// Spell Casting Subtlety etc
|
||||
int64 hatemod = 100 + other->spellbonuses.hatemod + other->itembonuses.hatemod + other->aabonuses.hatemod;
|
||||
|
||||
if (hatemod < 1)
|
||||
if (hatemod < 1) {
|
||||
hatemod = 1;
|
||||
}
|
||||
hate = ((hate * (hatemod)) / 100);
|
||||
}
|
||||
else {
|
||||
hate += 100; // 100 bonus initial aggro
|
||||
} else {
|
||||
if (IsCharmed()){
|
||||
hate += RuleI(Aggro, InitialPetAggroBonus);
|
||||
} else {
|
||||
hate += RuleI(Aggro, InitialAggroBonus);
|
||||
}
|
||||
}
|
||||
|
||||
// Pet that is /pet hold on will not add to their hate list if they're not engaged
|
||||
|
||||
Reference in New Issue
Block a user