640 {
642
645 Unit* dancingRuneWeapon =
nullptr;
648 {
649 dancingRuneWeapon = *itr;
650 break;
651 }
652
653 if (!dancingRuneWeapon)
654 return;
655
658 {
659
660 if (!procSpell->IsAffectingArea())
662 dancingRuneWeapon->
CastSpell(target, procSpell->Id,
true,
nullptr, aurEff, dancingRuneWeapon->
GetGUID());
664 }
666 {
671 {
674 }
675 damageInfo.
attacker = dancingRuneWeapon;
678 }
679 }
std::int32_t int32
Definition: Define.h:103
std::uint8_t uint8
Definition: Define.h:109
@ EFFECT_0
Definition: SharedDefines.h:31
#define MAX_ITEM_PROTO_DAMAGES
Definition: ItemTemplate.h:613
@ UNIT_FIELD_COMBATREACH
Definition: UpdateFields.h:123
void SetFloatValue(uint16 index, float value)
Definition: Object.cpp:737
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
void SetOrientation(float orientation)
Definition: Position.h:111
float GetAngle(const Position *pos) const
Definition: Position.cpp:78
WeaponAttackType GetAttackType() const
Definition: Unit.h:363
DamageInfo * GetDamageInfo() const
Definition: Unit.h:449
struct CalcDamageInfo::@264 damages[MAX_ITEM_PROTO_DAMAGES]
uint32 absorb
Definition: Unit.h:471
uint32 damage
Definition: Unit.h:470
Unit * attacker
Definition: Unit.h:464
ControlSet m_Controlled
Definition: Unit.h:1940
void SendAttackStateUpdate(CalcDamageInfo *damageInfo)
Definition: Unit.cpp:6479
Unit * GetMeleeHitRedirectTarget(Unit *victim, SpellInfo const *spellInfo=nullptr)
Definition: Unit.cpp:11057
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:1167
void CalculateMeleeDamage(Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK, const bool sittingVictim=false)
Definition: Unit.cpp:1464
void DealMeleeDamage(CalcDamageInfo *damageInfo, bool durabilityLoss)
Definition: Unit.cpp:1829
static void DealDamageMods(Unit const *victim, uint32 &damage, uint32 *absorb)
Definition: Unit.cpp:800
void PreventDefaultAction()
Definition: SpellScript.cpp:985
SpellInfo const * GetSpellInfo() const
Definition: SpellScript.cpp:1005
Unit * GetUnitOwner() const
Definition: SpellScript.cpp:1030