641 {
644 if (!caster)
645 return;
646
648 {
655
657 }
658 else
659 {
664
667 caster->
m_spells[i] = ct->spells[i];
668 }
669
671 player->VehicleSpellInitialize();
672 }
std::uint8_t uint8
Definition: Define.h:109
#define sObjectMgr
Definition: ObjectMgr.h:1623
static constexpr uint32 MAX_CREATURE_SPELLS
Definition: Unit.h:45
@ UNIT_STATE_ROOT
Definition: UnitDefines.h:159
@ UNIT_FLAG_DISABLE_MOVE
Definition: UnitDefines.h:231
@ SPELL_JORMUNGAR_SUBMERGE_VISUAL
Definition: zone_storm_peaks.cpp:627
@ SPELL_COLOSSUS_GROUND_SLAM
Definition: zone_storm_peaks.cpp:628
@ SPELL_JORMUNGAR_EMERGE
Definition: zone_storm_peaks.cpp:626
@ SPELL_JORMUNGAR_SUBMERGE
Definition: zone_storm_peaks.cpp:625
@ IMMUNITY_ID
Definition: SharedDefines.h:1400
Definition: Creature.h:46
uint32 m_spells[MAX_CREATURE_SPELLS]
Definition: Creature.h:251
Definition: CreatureData.h:189
uint32 GetEntry() const
Definition: Object.h:112
Creature * ToCreature()
Definition: Object.h:202
Definition: Player.h:1064
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL)
Definition: Unit.cpp:13346
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition: Unit.cpp:10578
void SetControlled(bool apply, UnitState state, Unit *source=nullptr, bool isFear=false)
Definition: Unit.cpp:17990
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 RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4891
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:683
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:684
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401