mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Core/Spells): Prevent vehicles from receiving party/raid area auras (#24820)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -1005,6 +1005,9 @@ namespace Acore
|
|||||||
AnyGroupedUnitInObjectRangeCheck(WorldObject const* obj, Unit const* funit, float range, bool raid) : _source(obj), _refUnit(funit), _range(range), _raid(raid) {}
|
AnyGroupedUnitInObjectRangeCheck(WorldObject const* obj, Unit const* funit, float range, bool raid) : _source(obj), _refUnit(funit), _range(range), _raid(raid) {}
|
||||||
bool operator()(Unit* u)
|
bool operator()(Unit* u)
|
||||||
{
|
{
|
||||||
|
if (u->IsVehicle())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (_raid)
|
if (_raid)
|
||||||
{
|
{
|
||||||
if (!_refUnit->IsInRaidWith(u))
|
if (!_refUnit->IsInRaidWith(u))
|
||||||
|
|||||||
Reference in New Issue
Block a user