* Unsummon pet if direct control spell expire out of visibility range from owner (base on VladimirMangos changes)

* Move repeating code to separate method

--HG--
branch : trunk
This commit is contained in:
azazel
2010-08-12 12:14:32 +06:00
parent c7b48c1ca9
commit c6b4309f1e
4 changed files with 90 additions and 113 deletions
+1
View File
@@ -1247,6 +1247,7 @@ class Player : public Unit, public GridObject<Player>
}
void SendNewItem(Item *item, uint32 count, bool received, bool created, bool broadcast = false);
bool BuyItemFromVendorSlot(uint64 vendorguid, uint32 vendorslot, uint32 item, uint8 count, uint8 bag, uint8 slot);
bool _StoreOrEquipNewItem(uint32 vendorslot, uint32 item, uint8 count, uint8 bag, uint8 slot, int32 price, ItemPrototype const *pProto, Creature *pVendor, VendorItem const* crItem, bool bStore);
float GetReputationPriceDiscount(Creature const* pCreature) const;