diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-09-15 00:02:45 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-09-15 00:02:45 +0200 |
commit | b7f6416ee313e2b557198431b1817a57c1c99940 (patch) | |
tree | b29c4c53951932ba554e494ca6eecdf4b6feb8b2 /src | |
parent | 8d31aba76880f80669f5b8c08116b6aea60e8114 (diff) |
Core/Spells: Fixed summoning to instances
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Spells/Spell.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 7414ee9e1f6..9f38ab18a31 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -5189,8 +5189,9 @@ SpellCastResult Spell::CheckCast(bool strict) Difficulty difficulty = m_caster->GetMap()->GetDifficulty(); if (map->IsRaid()) if (InstancePlayerBind* targetBind = target->GetBoundInstance(mapId, difficulty)) - if (targetBind->perm && targetBind != m_caster->ToPlayer()->GetBoundInstance(mapId, difficulty)) - return SPELL_FAILED_TARGET_LOCKED_TO_RAID_INSTANCE; + if (InstancePlayerBind* casterBind = m_caster->ToPlayer()->GetBoundInstance(mapId, difficulty)) + if (targetBind->perm && targetBind->save != casterBind->save) + return SPELL_FAILED_TARGET_LOCKED_TO_RAID_INSTANCE; InstanceTemplate const* instance = sObjectMgr->GetInstanceTemplate(mapId); if (!instance) |