2311 {
2313 if (!caster)
2314 return;
2315
2317 if (!spellInfo)
2318 return;
2319
2320
2322 {
2324
2325
2327 }
2328
2330 {
2333 if (
Unit* passenger = vehicle->GetPassenger(0))
2335 }
2336
2337 }
std::int32_t int32
Definition: Define.h:103
@ SPELL_OVERHEAT
Definition: boss_icecrown_gunship_battle.cpp:185
@ SAY_OVERHEAT
Definition: boss_icecrown_gunship_battle.cpp:72
@ EFFECT_1
Definition: SharedDefines.h:32
@ POWER_ENERGY
Definition: SharedDefines.h:272
@ SPELL_EFFECT_ENERGIZE
Definition: SharedDefines.h:808
#define sCreatureTextMgr
Definition: CreatureTextMgr.h:118
Creature * ToCreature()
Definition: Object.h:205
int32 ModifyPower(Powers power, int32 val, bool withPowerUpdate=true)
Definition: Unit.cpp:14149
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:1167
uint32 GetPower(Powers power) const
Definition: Unit.h:1056
Vehicle * GetVehicleKit() const
Definition: Unit.h:1785
Definition: SpellInfo.h:316
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition: SpellInfo.h:393
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
Unit * GetCaster()
Definition: SpellScript.cpp:401