mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 00:53:46 +00:00
@@ -9269,6 +9269,12 @@ void Player::SendLoot(uint64 guid, LootType loot_type)
|
||||
loot->FillLoot(creature->GetCreatureTemplate()->SkinLootId, LootTemplates_Skinning, this, true);
|
||||
permission = OWNER_PERMISSION;
|
||||
|
||||
//Inform instance if creature is skinned.
|
||||
if (InstanceScript* mapInstance = creature->GetInstanceScript())
|
||||
{
|
||||
mapInstance->CreatureLooted(creature, LOOT_SKINNING);
|
||||
}
|
||||
|
||||
// Xinef: Set new loot recipient
|
||||
creature->SetLootRecipient(this, false);
|
||||
}
|
||||
|
||||
@@ -134,6 +134,9 @@ class InstanceScript : public ZoneScript
|
||||
//On load
|
||||
virtual void Load(char const* data) { LoadBossState(data); }
|
||||
|
||||
//Called when creature is Looted
|
||||
virtual void CreatureLooted(Creature* /*creature*/, LootType) {}
|
||||
|
||||
//When save is needed, this function generates the data
|
||||
virtual std::string GetSaveData() { return GetBossSaveData(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user