221 {
223 return;
224
226
228 {
230
233
234 if (!item)
235 return;
236
237
239 {
241 if (!enchant)
242 continue;
243
244 for (
uint8 s = 0; s < 3; ++s)
245 {
247 continue;
248
250 if (!spellInfo)
251 {
252 LOG_ERROR(
"misc",
"Player::CastItemCombatSpell Enchant {}, player (Name: {}, {}) cast unknown spell {}",
254 continue;
255 }
256
257
259 continue;
260
261
263 continue;
264
267 else
269 }
270 }
271 }
272 }
#define LOG_ERROR(filterType__,...)
Definition: Log.h:156
std::uint8_t uint8
Definition: Define.h:109
DBCStorage< SpellItemEnchantmentEntry > sSpellItemEnchantmentStore(SpellItemEnchantmentfmt)
@ EQUIPMENT_SLOT_MAINHAND
Definition: Player.h:690
@ EQUIPMENT_SLOT_OFFHAND
Definition: Player.h:691
#define INVENTORY_SLOT_BAG_0
Definition: Player.h:670
EnchantmentSlot
Definition: Item.h:168
@ MAX_ENCHANTMENT_SLOT
Definition: Item.h:183
#define sSpellMgr
Definition: SpellMgr.h:825
@ SPELLFAMILY_ROGUE
Definition: SharedDefines.h:3536
@ DISPEL_POISON
Definition: SharedDefines.h:1376
@ ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL
Definition: DBCEnums.h:367
bool IsEqual(uint32 p1=0, uint32 p2=0, uint32 p3=0) const
Definition: Util.h:463
uint32 GetEnchantmentId(EnchantmentSlot slot) const
Definition: Item.h:304
Player * ToPlayer()
Definition: Object.h:198
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
std::string const & GetName() const
Definition: Object.h:458
std::string ToString() const
Definition: ObjectGuid.cpp:47
Definition: Player.h:1064
Item * GetItemByPos(uint16 pos) const
Definition: PlayerStorage.cpp:447
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
Definition: SpellInfo.h:316
flag96 SpellFamilyFlags
Definition: SpellInfo.h:388
uint32 Dispel
Definition: SpellInfo.h:322
bool IsPositive() const
Definition: SpellInfo.cpp:1236
uint32 SpellFamilyName
Definition: SpellInfo.h:387
Item * GetCastItem()
Definition: SpellScript.cpp:620
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401
uint8 _stackAmount
Definition: spell_rogue.cpp:280
Definition: DBCStructure.h:1841
uint32 spellid[MAX_SPELL_ITEM_ENCHANTMENT_EFFECTS]
Definition: DBCStructure.h:1847
uint32 type[MAX_SPELL_ITEM_ENCHANTMENT_EFFECTS]
Definition: DBCStructure.h:1844
uint32 ID
Definition: DBCStructure.h:1842