mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[8183] Some gameobject despanw related fixes
* 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.
This commit is contained in:
parent
58209ee79a
commit
9a0abf0e01
8 changed files with 116 additions and 92 deletions
|
|
@ -1149,7 +1149,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue