AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
spell_putricide_slime_puddle Class Reference
Inheritance diagram for spell_putricide_slime_puddle:
SpellScript _SpellScript

Private Member Functions

 PrepareSpellScript (spell_putricide_slime_puddle)
 
void ScaleRange (std::list< WorldObject * > &targets)
 
void HandleScript (SpellEffIndex)
 
void Register () override
 

Additional Inherited Members

- Public Member Functions inherited from SpellScript
bool _Validate (SpellInfo const *entry) override
 
bool _Load (Spell *spell)
 
void _InitHit ()
 
bool _IsEffectPrevented (SpellEffIndex effIndex)
 
bool _IsDefaultEffectPrevented (SpellEffIndex effIndex)
 
void _PrepareScriptCall (SpellScriptHookType hookType)
 
void _FinishScriptCall ()
 
bool IsInCheckCastHook () const
 
bool IsInTargetHook () const
 
bool IsInHitPhase () const
 
bool IsInEffectHook () const
 
Unit * GetCaster ()
 
GameObject * GetGObjCaster ()
 
Unit * GetOriginalCaster ()
 
SpellInfo const * GetSpellInfo ()
 
SpellValue const * GetSpellValue ()
 
WorldLocation const * GetExplTargetDest ()
 
void SetExplTargetDest (WorldLocation &loc)
 
WorldObject * GetExplTargetWorldObject ()
 
Unit * GetExplTargetUnit ()
 
GameObject * GetExplTargetGObj ()
 
Item * GetExplTargetItem ()
 
Unit * GetHitUnit ()
 
Creature * GetHitCreature ()
 
Player * GetHitPlayer ()
 
Item * GetHitItem ()
 
GameObject * GetHitGObj ()
 
WorldLocation * GetHitDest ()
 
int32 GetHitDamage ()
 
void SetHitDamage (int32 damage)
 
void PreventHitDamage ()
 
int32 GetHitHeal ()
 
void SetHitHeal (int32 heal)
 
void PreventHitHeal ()
 
Spell * GetSpell ()
 
Aura * GetHitAura ()
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
Item * GetCastItem ()
 
void CreateItem (uint32 effIndex, uint32 itemId)
 
SpellInfo const * GetTriggeringSpell ()
 
void FinishCast (SpellCastResult result)
 
void Cancel ()
 
void SetCustomCastResultMessage (SpellCustomErrors result)
 
- Public Member Functions inherited from _SpellScript
 _SpellScript ()
 
virtual ~_SpellScript ()
 
virtual void _Register ()
 
virtual void _Unload ()
 
virtual void _Init (std::string const *scriptname, uint32 spellId)
 
std::string const * _GetScriptName () const
 
virtual bool Validate (SpellInfo const *)
 
virtual bool Load ()
 
virtual void Unload ()
 
- Static Public Member Functions inherited from _SpellScript
static bool ValidateSpellInfo (std::initializer_list< uint32 > spellIds)
 
template<class T >
static bool ValidateSpellInfo (T const &spellIds)
 
- Public Attributes inherited from SpellScript
HookList< CastHandler > BeforeCast
 
HookList< CastHandler > OnCast
 
HookList< CastHandler > AfterCast
 
HookList< CheckCastHandler > OnCheckCast
 
HookList< EffectHandler > OnEffectLaunch
 
HookList< EffectHandler > OnEffectLaunchTarget
 
HookList< EffectHandler > OnEffectHit
 
HookList< EffectHandler > OnEffectHitTarget
 
HookList< BeforeHitHandler > BeforeHit
 
HookList< HitHandler > OnHit
 
HookList< HitHandler > AfterHit
 
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
 
HookList< ObjectTargetSelectHandler > OnObjectTargetSelect
 
HookList< DestinationTargetSelectHandler > OnDestinationTargetSelect
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string const * m_scriptName
 
uint32 m_scriptSpellId
 

Detailed Description

Member Function Documentation

◆ HandleScript()

void spell_putricide_slime_puddle::HandleScript ( SpellEffIndex  )
inlineprivate
930 {
931 SpellInfo const* s1 = sSpellMgr->GetSpellInfo(70346);
932 SpellInfo const* s2 = sSpellMgr->GetSpellInfo(72456);
933 if (s1 && s2)
934 if (Unit* target = GetHitUnit())
935 {
938 }
939 }
#define MAX_EFFECT_MASK
Definition DBCStructure.h:1674
#define sSpellMgr
Definition SpellMgr.h:847
static Aura * TryRefreshStackOrCreate(SpellInfo const *spellproto, uint8 tryEffMask, WorldObject *owner, Unit *caster, int32 *baseAmount=nullptr, Item *castItem=nullptr, ObjectGuid casterGUID=ObjectGuid::Empty, bool *refresh=nullptr, bool periodicReset=false)
Definition SpellAuras.cpp:270
Definition SpellInfo.h:340
Unit * GetHitUnit()
Definition SpellScript.cpp:453
Definition Unit.h:665

References SpellScript::GetHitUnit(), MAX_EFFECT_MASK, sSpellMgr, and Aura::TryRefreshStackOrCreate().

Referenced by Register().

◆ PrepareSpellScript()

spell_putricide_slime_puddle::PrepareSpellScript ( spell_putricide_slime_puddle  )
private

◆ Register()

void spell_putricide_slime_puddle::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

942 {
946 }
@ EFFECT_1
Definition SharedDefines.h:32
@ EFFECT_0
Definition SharedDefines.h:31
@ SPELL_EFFECT_APPLY_AURA
Definition SharedDefines.h:772
@ TARGET_UNIT_DEST_AREA_ENEMY
Definition SharedDefines.h:1425
@ TARGET_UNIT_DEST_AREA_ENTRY
Definition SharedDefines.h:1421
#define SpellEffectFn(F, I, N)
Definition SpellScript.h:337
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition SpellScript.h:354
HookList< EffectHandler > OnEffectHitTarget
Definition SpellScript.h:336
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition SpellScript.h:353
void ScaleRange(std::list< WorldObject * > &targets)
Definition boss_professor_putricide.cpp:923
void HandleScript(SpellEffIndex)
Definition boss_professor_putricide.cpp:929

References EFFECT_0, EFFECT_1, HandleScript(), SpellScript::OnEffectHitTarget, SpellScript::OnObjectAreaTargetSelect, ScaleRange(), SPELL_EFFECT_APPLY_AURA, SpellEffectFn, SpellObjectAreaTargetSelectFn, TARGET_UNIT_DEST_AREA_ENEMY, and TARGET_UNIT_DEST_AREA_ENTRY.

◆ ScaleRange()

void spell_putricide_slime_puddle::ScaleRange ( std::list< WorldObject * > &  targets)
inlineprivate
924 {
925 targets.remove_if(Acore::AllWorldObjectsInExactRange(GetCaster(), 2.5f * GetCaster()->GetFloatValue(OBJECT_FIELD_SCALE_X), true));
926 }
@ OBJECT_FIELD_SCALE_X
Definition UpdateFields.h:28
Definition GridNotifiers.h:1709
Unit * GetCaster()
Definition SpellScript.cpp:401

References SpellScript::GetCaster(), and OBJECT_FIELD_SCALE_X.

Referenced by Register().


The documentation for this class was generated from the following file: