Skip to content

Commit

Permalink
Fixed for new build.
Browse files Browse the repository at this point in the history
  • Loading branch information
talamortis committed Jan 13, 2019
1 parent 7dcc136 commit 2eb07a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/PvPScript.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "Configuration/Config.h"
#include "Configuration/Config.h"
#include "Player.h"
#include "Creature.h"
#include "AccountMgr.h"
Expand All @@ -7,6 +7,7 @@
#include "Define.h"
#include "GossipDef.h"
#include "Pet.h"
#include "Item.h"

uint32 SUMMON_CHEST;
uint32 KillAnnounce;
Expand Down Expand Up @@ -88,7 +89,7 @@ class PvPScript : public PlayerScript
if (Item* pItem = killed->GetItemByPos(INVENTORY_SLOT_BAG_0, i))
{
uint8 slot = pItem->GetSlot();
LootStoreItem storeItem = LootStoreItem(pItem->GetEntry(), 100, LOOT_MODE_DEFAULT, 0, 1, 1);
LootStoreItem storeItem = LootStoreItem(pItem->GetEntry(), 0, 100, 0, LOOT_MODE_DEFAULT, 0, 1, 1);
go->loot.AddItem(storeItem);
killed->DestroyItem(INVENTORY_SLOT_BAG_0, slot, true);
}
Expand Down Expand Up @@ -155,7 +156,7 @@ class PvPScript : public PlayerScript
if (Item* pItem = killed->GetItemByPos(INVENTORY_SLOT_BAG_0, i))
{
uint8 slot = pItem->GetSlot();
LootStoreItem storeItem = LootStoreItem(pItem->GetEntry(), 100, LOOT_MODE_DEFAULT, 0, 1, 1);
LootStoreItem storeItem = LootStoreItem(pItem->GetEntry(), 0, 100, 0, LOOT_MODE_DEFAULT, 0, 1, 1);
go->loot.AddItem(storeItem);
killed->DestroyItem(INVENTORY_SLOT_BAG_0, slot, true);
}
Expand Down

0 comments on commit 2eb07a1

Please sign in to comment.