243 {
245
247 {
249
251
252 if (!healinfo || !healinfo->
GetHeal())
253 {
254 return;
255 }
256
258 if (!procSpell)
259 {
260 return;
261 }
262
265 {
267
269 AddPct(basepoints, aurEffect->GetAmount());
270
272 return;
273 }
274
275 return;
276 }
277
280 return;
281
283 int32 basepoints = aurEff->GetAmount();
284
285
286 if (
Unit* caster = aurEff->GetCaster())
289
292 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
std::int32_t int32
Definition: Define.h:103
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_AURA_PROC_TRIGGER_SPELL
Definition: SpellAuraDefines.h:105
@ PROC_FLAG_TAKEN_SPELL_MAGIC_DMG_CLASS_POS
Definition: SpellMgr.h:129
@ SPELLFAMILY_PALADIN
Definition: SharedDefines.h:3538
bool HasFlag(uint32 p1=0, uint32 p2=0, uint32 p3=0) const
Definition: Util.h:468
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
SpellInfo const * GetSpellInfo() const
Definition: Unit.h:415
Unit * GetActionTarget() const
Definition: Unit.h:440
uint32 GetTypeMask() const
Definition: Unit.h:442
Unit * GetActor()
Definition: Unit.h:439
uint32 GetProcCooldown() const
Definition: Unit.h:453
virtual bool HasSpellCooldown(uint32) const
Definition: Unit.h:1727
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1225
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5465
virtual void AddSpellCooldown(uint32, uint32, uint32, bool needSendToClient=false, bool forceSendToSpectator=false)
Definition: Unit.h:1729
flag96 SpellFamilyFlags
Definition: SpellInfo.h:388
uint32 SpellFamilyName
Definition: SpellInfo.h:387
void PreventDefaultAction()
Definition: SpellScript.cpp:985