diff options
author | megamage <none@none> | 2009-07-16 12:06:07 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-16 12:06:07 +0800 |
commit | e152ff8ec5fc3282b0ab3d1740f05886f90335ed (patch) | |
tree | 296587187e967b314a15faa24757365112ff2cff /src/game/Spell.cpp | |
parent | 208087ff6ee592150b1ed387bbc135566a02a359 (diff) |
[8183] Some gameobject despanw related fixes Author: VladimirMangos
* Implement use `consumable` field in gameobject template for gameobject required explcit despawn at use.
* Move gameobject template fields cech function from Gameobject to gameobject template class, and update callers.
* Cast spells at gameobject use with gameobject guid as original caster guid, as already used in some other cases. (skipped)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 050e233313b..a501f83710d 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -4827,7 +4827,7 @@ SpellCastResult Spell::CheckCast(bool strict) uint32 lockId = 0; if (GameObject* go = m_targets.getGOTarget()) { - lockId = go->GetLockId(); + lockId = go->GetGOInfo()->GetLockId(); if (!lockId) return SPELL_FAILED_BAD_TARGETS; } |