[Rule] Undead Aggro (#3881)

* [Rule] Undead Aggro

Add rule for undead aggro and check for undead at aggro check time

* Add Rule

* Requested Change
This commit is contained in:
Fryguy authored and GitHub committed 2024-01-07 12:13:30 -05:00
1 parent b83373491e
commit 611122833d
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -524,7 +524,8 @@ bool Mob::CheckWillAggro(Mob *mob) {
} else {
if (
(
GetINT() <= RuleI(Aggro, IntAggroThreshold) ||
(RuleB(Aggro, UndeadAlwaysAggro) && GetBodyType() == BT_Undead) ||
(GetINT() <= RuleI(Aggro, IntAggroThreshold)) ||
AlwaysAggro() ||
(
mob->IsClient() &&