Misc Fixes

This commit is contained in:
hondacrx
2017-08-07 16:15:20 -04:00
parent 473cea0f06
commit b494d51816
13 changed files with 49 additions and 42 deletions
+2 -3
View File
@@ -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);
+3 -9
View File
@@ -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)
{