mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
Change modified sneak pull assist range to a rule. Fixed formatting on decls.
This commit is contained in:
+3
-3
@@ -3241,10 +3241,10 @@ void NPC::AIYellForHelp(Mob *sender, Mob *attacker)
|
||||
float assist_range = (mob->GetAssistRange() * mob->GetAssistRange());
|
||||
|
||||
if (RuleB(Combat, EnableSneakPull) && attacker->sneaking) {
|
||||
assist_range=(20*20);
|
||||
assist_range=RuleI(SneakPullAssistRange);
|
||||
if (attacker->IsClient()) {
|
||||
float clientx=attacker->GetX();
|
||||
float clienty=attacker->GetY();
|
||||
float clientx = attacker->GetX();
|
||||
float clienty = attacker->GetY();
|
||||
if (attacker->CastToClient()->BehindMob(mob, clientx, clienty)) {
|
||||
assist_range = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user