819 {
821 if (!caster)
822 return;
823
825
826 if (!drake)
827 return;
828
829 switch (aurEff->GetEffIndex())
830 {
839 break;
843 break;
844 }
845 }
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
@ SPELL_AURA_MOD_SHAPESHIFT
Definition: SpellAuraDefines.h:99
@ SPELL_DRAKE_FLAG_VISUAL
Definition: oculus.cpp:47
@ SPELL_SCALE_STATS
Definition: oculus.cpp:50
@ SPELL_RUBY_EVASIVE_AURA
Definition: oculus.cpp:52
@ SPELL_SOAR_TRIGGER
Definition: oculus.cpp:48
@ NPC_RUBY_DRAKE
Definition: oculus.h:61
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_2
Definition: SharedDefines.h:33
Definition: Creature.h:46
uint32 GetEntry() const
Definition: Object.h:112
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
Creature * GetVehicleCreatureBase() const
Definition: Unit.cpp:18703
Aura * AddAura(uint32 spellId, Unit *target)
Definition: Unit.cpp:18819
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:1168
void RemoveAurasByType(AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true)
Definition: Unit.cpp:5081
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:683
void PreventDefaultAction()
Definition: SpellScript.cpp:985
Unit * GetCaster() const
Definition: SpellScript.cpp:1020
ObjectGuid _drakeGUID
Definition: oculus.cpp:816