[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user