[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
@@ -7564,7 +7564,7 @@ void Player::SendLoot(uint64 guid, LootType loot_type)
if (go->getLootState() == GO_READY)
{
uint32 lootid = go->GetLootId();
uint32 lootid = go->GetGOInfo()->GetLootId();
//TODO: fix this big hack
if((go->GetEntry() == BG_AV_OBJECTID_MINE_N || go->GetEntry() == BG_AV_OBJECTID_MINE_S))