mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix (Core/Scripting): SMART_EVENT_NEAR_PLAYERS (#18514)
* FIX SMART_EVENT_NEAR_PLAYERS * FIX SMART_EVENT_NEAR_PLAYERS (fix build)
This commit is contained in:
@@ -4398,10 +4398,9 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
|
|||||||
{
|
{
|
||||||
if (IsPlayer(target))
|
if (IsPlayer(target))
|
||||||
playerCount++;
|
playerCount++;
|
||||||
|
|
||||||
if (playerCount >= e.event.nearPlayer.minCount)
|
|
||||||
ProcessAction(e, target->ToUnit());
|
|
||||||
}
|
}
|
||||||
|
if (playerCount >= e.event.nearPlayer.minCount)
|
||||||
|
ProcessAction(e, unit);
|
||||||
}
|
}
|
||||||
RecalcTimer(e, e.event.nearPlayer.repeatMin, e.event.nearPlayer.repeatMax);
|
RecalcTimer(e, e.event.nearPlayer.repeatMin, e.event.nearPlayer.repeatMax);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user