TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript Class Reference

Private Member Functions

 PrepareSpellScript (spell_frostwarden_handler_order_whelp_SpellScript)
 
bool Validate (SpellInfo const *) override
 
void FilterTargets (std::list< WorldObject * > &targets)
 
void HandleForcedCast (SpellEffIndex effIndex)
 
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
 
UnitGetCaster ()
 
UnitGetOriginalCaster ()
 
SpellInfo constGetSpellInfo ()
 
SpellValue constGetSpellValue ()
 
SpellEffectInfo constGetEffectInfo (SpellEffIndex) const
 
WorldLocation constGetExplTargetDest ()
 
void SetExplTargetDest (WorldLocation &loc)
 
WorldObjectGetExplTargetWorldObject ()
 
UnitGetExplTargetUnit ()
 
GameObjectGetExplTargetGObj ()
 
ItemGetExplTargetItem ()
 
UnitGetHitUnit ()
 
CreatureGetHitCreature ()
 
PlayerGetHitPlayer ()
 
ItemGetHitItem ()
 
GameObjectGetHitGObj ()
 
WorldLocationGetHitDest ()
 
int32 GetHitDamage ()
 
void SetHitDamage (int32 damage)
 
void PreventHitDamage ()
 
int32 GetHitHeal ()
 
void SetHitHeal (int32 heal)
 
void PreventHitHeal ()
 
SpellGetSpell ()
 
AuraGetHitAura ()
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
SpellEffectInfo constGetEffectInfo () const
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
ItemGetCastItem ()
 
void CreateItem (uint32 effIndex, uint32 itemId)
 
SpellInfo constGetTriggeringSpell ()
 
void FinishCast (SpellCastResult result)
 
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 Load ()
 
virtual void Unload ()
 
- Public Attributes inherited from SpellScript
HookList< CastHandlerBeforeCast
 
HookList< CastHandlerOnCast
 
HookList< CastHandlerAfterCast
 
HookList< CheckCastHandlerOnCheckCast
 
HookList< EffectHandlerOnEffectLaunch
 
HookList< EffectHandlerOnEffectLaunchTarget
 
HookList< EffectHandlerOnEffectHit
 
HookList< EffectHandlerOnEffectHitTarget
 
HookList< EffectHandlerOnEffectSuccessfulDispel
 
HookList< HitHandlerBeforeHit
 
HookList< HitHandlerOnHit
 
HookList< HitHandlerAfterHit
 
HookList
< ObjectAreaTargetSelectHandler
OnObjectAreaTargetSelect
 
HookList
< ObjectTargetSelectHandler
OnObjectTargetSelect
 
HookList
< DestinationTargetSelectHandler
OnDestinationTargetSelect
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string constm_scriptName
 
uint32 m_scriptSpellId
 

Member Function Documentation

void spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript::FilterTargets ( std::list< WorldObject * > &  targets)
inlineprivate
1487  {
1488  targets.remove_if(Trinity::ObjectTypeIdCheck(TYPEID_PLAYER, false));
1489  if (targets.empty())
1490  return;
1491 
1493  targets.clear();
1494  targets.push_back(target);
1495  }
C::value_type const & SelectRandomContainerElement(C const &container)
Definition: Containers.h:68
Definition: Object.h:423
Definition: GridNotifiers.h:1330
Definition: ObjectGuid.h:33

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript::HandleForcedCast ( SpellEffIndex  effIndex)
inlineprivate
1498  {
1499  // caster is Frostwarden Handler, target is player, caster of triggered is whelp
1500  PreventHitDefaultEffect(effIndex);
1501  std::list<Creature*> unitList;
1503  if (Creature* creature = GetCaster()->ToCreature())
1504  unitList.remove_if(OrderWhelpTargetSelector(creature));
1505 
1506  if (unitList.empty())
1507  return;
1508 
1510  }
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:583
C::value_type const & SelectRandomContainerElement(C const &container)
Definition: Containers.h:68
Definition: boss_sindragosa.cpp:1454
TC_GAME_API void GetCreatureListWithEntryInGrid(std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
Definition: ScriptedCreature.cpp:621
Definition: Creature.h:467
Definition: icecrown_citadel.h:296
Unit * GetCaster()
Definition: SpellScript.cpp:394
Unit * GetHitUnit()
Definition: SpellScript.cpp:441
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript::PrepareSpellScript ( spell_frostwarden_handler_order_whelp_SpellScript  )
private
void spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

1513  {
1516  }
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition: SpellScript.h:310
void FilterTargets(std::list< WorldObject * > &targets)
Definition: boss_sindragosa.cpp:1486
Definition: SharedDefines.h:28
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition: SpellScript.h:311
#define SpellEffectFn(F, I, N)
Definition: SpellScript.h:297
Definition: SharedDefines.h:1886
HookList< EffectHandler > OnEffectHitTarget
Definition: SpellScript.h:295
void HandleForcedCast(SpellEffIndex effIndex)
Definition: boss_sindragosa.cpp:1497
Definition: SharedDefines.h:1150

+ Here is the call graph for this function:

bool spell_frostwarden_handler_order_whelp::spell_frostwarden_handler_order_whelp_SpellScript::Validate ( SpellInfo const )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

1480  {
1481  if (!sSpellMgr->GetSpellInfo(SPELL_FOCUS_FIRE))
1482  return false;
1483  return true;
1484  }
#define sSpellMgr
Definition: SpellMgr.h:756
Definition: boss_sindragosa.cpp:82

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