diff options
| author | Jeremy <Golrag@users.noreply.github.com> | 2023-06-28 19:01:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-28 19:01:14 +0200 |
| commit | 815e158a3ec5f5e173376ff4273913990e9bce10 (patch) | |
| tree | c9e2837e673232e3d84b969cefed1100e5862a15 /src/server/game/Entities | |
| parent | be81ff713333225ffa6f1d4c2b608db8a8fffe26 (diff) | |
Core/Creatures: Implement CREATURE_STATIC_FLAG_4_IGNORE_LOS_WHEN_CASTING_ON_ME (#29029)
Diffstat (limited to 'src/server/game/Entities')
| -rw-r--r-- | src/server/game/Entities/Creature/Creature.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Entities/Creature/Creature.h b/src/server/game/Entities/Creature/Creature.h index 3220fb38c8c..46aa837a386 100644 --- a/src/server/game/Entities/Creature/Creature.h +++ b/src/server/game/Entities/Creature/Creature.h @@ -187,6 +187,7 @@ class TC_GAME_API Creature : public Unit, public GridObject<Creature>, public Ma void SetMeleeDamageSchool(SpellSchools school) { m_meleeDamageSchoolMask = SpellSchoolMask(1 << school); } bool CanMelee() const { return !_staticFlags.HasFlag(CREATURE_STATIC_FLAG_NO_MELEE); } void SetCanMelee(bool canMelee) { _staticFlags.ApplyFlag(CREATURE_STATIC_FLAG_NO_MELEE, !canMelee); } + bool CanIgnoreLineOfSightWhenCastingOnMe() const { return _staticFlags.HasFlag(CREATURE_STATIC_FLAG_4_IGNORE_LOS_WHEN_CASTING_ON_ME); } bool HasSpell(uint32 spellID) const override; |
