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:
parent
beca6fef53
commit
bce0be9fdb
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {}
|
||||
bool operator()(Unit* u)
|
||||
{
|
||||
if (u->IsVehicle())
|
||||
return false;
|
||||
|
||||
if (_raid)
|
||||
{
|
||||
if (!_refUnit->IsInRaidWith(u))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue