197 {
199
202
203 if (!caster || !target)
204 {
205 return;
206 }
207
209 if (!map)
210 {
211 return;
212 }
213
216
218 caster->
CastSpell(target, spellId,
true);
219 }
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_ROCK_SHARDS_RIGHT_HAND_VISUAL
Definition: boss_archavon.cpp:29
@ SPELL_ROCK_SHARDS_DAMAGE_10
Definition: boss_archavon.cpp:30
@ SPELL_ROCK_SHARDS_LEFT_HAND_VISUAL
Definition: boss_archavon.cpp:28
@ SPELL_ROCK_SHARDS_DAMAGE_25
Definition: boss_archavon.cpp:31
Map * GetMap() const
Definition: Object.h:536
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
bool Is25ManRaid() const
Definition: Map.h:451
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401