Check of required skill value and level in Item enchants, by azazel. Closes #512

* Added some cosmetic changes to the original patch

--HG--
branch : trunk
This commit is contained in:
spp
2009-12-13 09:17:12 +01:00
parent 839e5624c4
commit df76273dd0
5 changed files with 40 additions and 16 deletions
+3
View File
@@ -250,6 +250,9 @@ class TRINITY_DLL_SPEC Item : public Object
void SetInTrade(bool b = true) { mb_in_trade = b; }
bool IsInTrade() const { return mb_in_trade; }
bool HasEnchantRequiredSkill(const Player *pPlayer) const;
uint32 GetEnchantRequiredLevel() const;
bool IsFitToSpellRequirements(SpellEntry const* spellInfo) const;
bool IsTargetValidForItemUse(Unit* pUnitTarget);
bool IsLimitedToAnotherMapOrZone( uint32 cur_mapId, uint32 cur_zoneId) const;