diff options
author | linencloth <none@none> | 2010-11-16 01:13:04 +0100 |
---|---|---|
committer | linencloth <none@none> | 2010-11-16 01:13:04 +0100 |
commit | 8fae0c176d73a1606f26a5b0d7fc44f7a23ba49c (patch) | |
tree | 5504659fc056351c6ed350368afc7ea0a9d1a5db /src/server/game/Spells/Spell.cpp | |
parent | 57c76407b05a919bad20008ffbfc1590a044d2ad (diff) |
Core/Units: Rename and change Get/SetVisibility to use a bool value instead of an unnecessary enum
Also replace some SetVisibility hacks to directly call UpdateObjectVisibility
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rwxr-xr-x | src/server/game/Spells/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 4573f0357f2..a8d1a44528a 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -6574,7 +6574,7 @@ bool Spell::CheckTarget(Unit* target, uint32 eff) //Check player targets and remove if in GM mode or GM invisibility (for not self casting case) if (target != m_caster && target->GetTypeId() == TYPEID_PLAYER) { - if (target->ToPlayer()->GetVisibility() == VISIBILITY_OFF) + if (!target->ToPlayer()->IsVisible()) return false; if (target->ToPlayer()->isGameMaster() && !IsPositiveSpell(m_spellInfo->Id)) |