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

Private Member Functions

 PrepareSpellScript (spell_svalna_revive_champion_SpellScript)
 
void RemoveAliveTarget (std::list< WorldObject * > &targets)
 
void Land (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
 
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 Validate (SpellInfo 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_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::Land ( SpellEffIndex  )
inlineprivate
1997  {
1998  Creature* caster = GetCaster()->ToCreature();
1999  if (!caster)
2000  return;
2001 
2002  Position pos = caster->GetNearPosition(5.0f, 0.0f);
2003  //pos.m_positionZ = caster->GetBaseMap()->GetHeight(caster->GetPhaseMask(), pos.GetPositionX(), pos.GetPositionY(), caster->GetPositionZ(), true, 50.0f);
2004  //pos.m_positionZ += 0.05f;
2005  caster->SetHomePosition(pos);
2006  caster->GetMotionMaster()->MoveLand(POINT_LAND, pos);
2007  }
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
void SetHomePosition(float x, float y, float z, float o)
Definition: Creature.h:670
Definition: Creature.h:467
Definition: icecrown_citadel.cpp:285
Position GetNearPosition(float dist, float angle)
Definition: Object.cpp:2629
void MoveLand(uint32 id, Position const &pos)
Definition: MotionMaster.cpp:299
Unit * GetCaster()
Definition: SpellScript.cpp:394
Creature * ToCreature()
Definition: Object.h:194
Definition: Position.h:27

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

spell_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::PrepareSpellScript ( spell_svalna_revive_champion_SpellScript  )
private
void spell_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

2010  {
2013  }
void Land(SpellEffIndex)
Definition: icecrown_citadel.cpp:1996
Definition: SharedDefines.h:1882
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition: SpellScript.h:310
Definition: SharedDefines.h:28
HookList< EffectHandler > OnEffectHit
Definition: SpellScript.h:294
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition: SpellScript.h:311
void RemoveAliveTarget(std::list< WorldObject * > &targets)
Definition: icecrown_citadel.cpp:1990
#define SpellEffectFn(F, I, N)
Definition: SpellScript.h:297
Definition: SharedDefines.h:1087

+ Here is the call graph for this function:

void spell_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::RemoveAliveTarget ( std::list< WorldObject * > &  targets)
inlineprivate
1991  {
1992  targets.remove_if(AliveCheck());
1994  }
void RandomResizeList(std::list< T > &list, uint32 size)
Definition: Containers.h:34
Definition: icecrown_citadel.cpp:1970

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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