[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
2009-07-16 12:06:07 +08:00
parent 208087ff6e
commit e152ff8ec5
7 changed files with 115 additions and 90 deletions
+1 -1
View File
@@ -1152,7 +1152,7 @@ void LoadLootTemplates_Gameobject()
{
if(GameObjectInfo const* gInfo = sGOStorage.LookupEntry<GameObjectInfo>(i))
{
if(uint32 lootid = GameObject::GetLootId(gInfo))
if(uint32 lootid = gInfo->GetLootId())
{
if(!ids_set.count(lootid))
LootTemplates_Gameobject.ReportNotExistedId(lootid);