314 for (
uint8 s = 0; s < 3; ++s)
322 TC_LOG_ERROR(
"spells",
"Player::CastItemCombatSpell Enchant %i, player (Name: %s, %s) cast unknown spell %i", enchant->
ID, player->GetName().c_str(), player->GetGUID().ToString().c_str(), enchant->
EffectSpellID[s]);
335 player->CastSpell(player, enchant->
EffectSpellID[s],
true, item);
337 player->CastSpell(target, enchant->
EffectSpellID[s],
true, item);
#define INVENTORY_SLOT_BAG_0
Definition: SpellInfo.h:326
EnchantmentSlot
Definition: Item.h:172
flag128 SpellFamilyFlags
Definition: SpellInfo.h:397
uint32 Dispel
Definition: SpellInfo.h:331
Definition: DBCStructure.h:1214
uint32 ID
Definition: DBCStructure.h:1216
Player * ToPlayer()
Definition: Object.h:191
uint8 _stackAmount
Definition: spell_rogue.cpp:349
bool IsPositive() const
Definition: SpellInfo.cpp:1495
uint32 SpellFamilyName
Definition: SpellInfo.h:396
Definition: SharedDefines.h:4631
#define sSpellMgr
Definition: SpellMgr.h:756
DBCStorage< SpellItemEnchantmentEntry > sSpellItemEnchantmentStore(SpellItemEnchantmentfmt)
Definition: DBCEnums.h:510
Unit * GetCaster()
Definition: SpellScript.cpp:394
uint32 EffectSpellID[MAX_ITEM_ENCHANTMENT_EFFECTS]
Definition: DBCStructure.h:1220
Item * GetCastItem()
Definition: SpellScript.cpp:622
uint8_t uint8
Definition: Define.h:152
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
Unit * GetHitUnit()
Definition: SpellScript.cpp:441
Definition: SharedDefines.h:1842
uint32 Effect[MAX_ITEM_ENCHANTMENT_EFFECTS]
Definition: DBCStructure.h:1218
uint32 GetEnchantmentId(EnchantmentSlot slot) const
Definition: Item.h:351