[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
This commit is contained in:
megamage committed 2009-07-16 12:06:07 +08:00
1 parent 208087ff6e
commit e152ff8ec5
7 files changed
+115 -90

No files matched your search

+1 -1
View File
@@ -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;
}