Misc Fixes
This commit is contained in:
@@ -481,7 +481,6 @@ namespace Game.Entities
|
||||
return TotalCost;
|
||||
}
|
||||
|
||||
|
||||
//Store Item
|
||||
public InventoryResult CanStoreItem(byte bag, byte slot, List<ItemPosCount> dest, Item pItem, bool swap = false)
|
||||
{
|
||||
@@ -3844,7 +3843,7 @@ namespace Game.Entities
|
||||
m_items[slot] = null;
|
||||
|
||||
int eslot = (int)slot - InventorySlots.BuyBackStart;
|
||||
SetGuidValue(PlayerFields.InvSlotHead + (eslot * 4), ObjectGuid.Empty);
|
||||
SetGuidValue(PlayerFields.InvSlotHead + (int)(slot * 4), ObjectGuid.Empty);
|
||||
SetUInt32Value(PlayerFields.BuyBackPrice1 + eslot, 0);
|
||||
SetUInt32Value(PlayerFields.BuyBackTimestamp1 + eslot, 0);
|
||||
|
||||
@@ -5635,7 +5634,7 @@ namespace Game.Entities
|
||||
pItem.DestroyForPlayer(this);
|
||||
}
|
||||
|
||||
pItem.SetOwnerGUID(ObjectGuid.Empty);
|
||||
//pItem.SetOwnerGUID(ObjectGuid.Empty);
|
||||
pItem.SetGuidValue(ItemFields.Contained, ObjectGuid.Empty);
|
||||
pItem.SetSlot(ItemConst.NullSlot);
|
||||
pItem.SetState(ItemUpdateState.Removed, this);
|
||||
|
||||
@@ -4116,12 +4116,9 @@ namespace Game.Entities
|
||||
if (!IsSectionFlagValid(hair, class_, create))
|
||||
return false;
|
||||
|
||||
if (facialHairId != 0)
|
||||
{
|
||||
CharSectionsRecord facialHair = Global.DB2Mgr.GetCharSectionEntry(race, CharSectionType.FacialHair, gender, facialHairId, hairColor);
|
||||
if (facialHair == null)
|
||||
return false;
|
||||
}
|
||||
CharSectionsRecord facialHair = Global.DB2Mgr.GetCharSectionEntry(race, CharSectionType.Hair, gender, facialHairId, hairColor);
|
||||
if (facialHair == null)
|
||||
return false;
|
||||
|
||||
for (int i = 0; i < PlayerConst.CustomDisplaySize; ++i)
|
||||
{
|
||||
@@ -5903,9 +5900,6 @@ namespace Game.Entities
|
||||
return reputationMgr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#region Sends / Updates
|
||||
void BeforeVisibilityDestroy(WorldObject obj, Player p)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user