fix(Scripts/IcecrownCitadel): Sindragosa P3 Exploit (#20938)
Co-authored-by: Jelle Meeus <sogladev@gmail.com>
This commit is contained in:
@@ -1114,10 +1114,9 @@ public:
|
|||||||
return !_caster->IsWithinLOSInMap(unit);
|
return !_caster->IsWithinLOSInMap(unit);
|
||||||
|
|
||||||
// for players and pets check only dynamic los (ice block gameobjects)
|
// for players and pets check only dynamic los (ice block gameobjects)
|
||||||
float ox, oy, oz;
|
if (unit->IsUnit() && unit->ToUnit()->HasUnitState(UNIT_STATE_MELEE_ATTACKING) && unit->ToUnit()->IsWithinMeleeRange(_caster))
|
||||||
_caster->GetPosition(ox, oy, oz);
|
return false;
|
||||||
DynamicMapTree const& dTree = unit->GetMap()->GetDynamicMapTree();
|
return !_caster->IsWithinLOSInMap(unit, VMAP::ModelIgnoreFlags::Nothing, LINEOFSIGHT_CHECK_GOBJECT_M2, 0, _caster->GetCombatReach() * 0.7);
|
||||||
return !dTree.isInLineOfSight(unit->GetPositionX(), unit->GetPositionY(), unit->GetPositionZ() + 2.f, ox, oy, oz + 2.f, unit->GetPhaseMask(), VMAP::ModelIgnoreFlags::Nothing);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user