TrinityCore
Loading...
Searching...
No Matches
CastSpellExtraArgs Struct Reference

#include <SpellDefines.h>

+ Inheritance diagram for CastSpellExtraArgs:

Public Member Functions

 CastSpellExtraArgs ()
 
 CastSpellExtraArgs (bool triggered)
 
 CastSpellExtraArgs (TriggerCastFlags trigger)
 
 CastSpellExtraArgs (Item *item)
 
 CastSpellExtraArgs (Spell const *triggeringSpell)
 
 CastSpellExtraArgs (AuraEffect const *eff)
 
 CastSpellExtraArgs (Difficulty castDifficulty)
 
 CastSpellExtraArgs (SpellValueMod mod, int32 val)
 
 CastSpellExtraArgs (SpellValueModFloat mod, SpellEffectValue val)
 
 CastSpellExtraArgs (CastSpellExtraArgsInit &&init)
 
 CastSpellExtraArgs (CastSpellExtraArgs const &other)
 
 CastSpellExtraArgs (CastSpellExtraArgs &&other) noexcept
 
CastSpellExtraArgs & operator= (CastSpellExtraArgs const &other)
 
CastSpellExtraArgs & operator= (CastSpellExtraArgs &&other) noexcept
 
 ~CastSpellExtraArgs ()
 
CastSpellExtraArgs & SetTriggerFlags (TriggerCastFlags flag)
 
CastSpellExtraArgs & SetCastItem (Item *item)
 
CastSpellExtraArgs & SetTriggeringSpell (Spell const *triggeringSpell)
 
CastSpellExtraArgs & SetTriggeringAura (AuraEffect const *triggeringAura)
 
CastSpellExtraArgs & SetOriginalCaster (ObjectGuid const &guid)
 
CastSpellExtraArgs & SetCastDifficulty (Difficulty castDifficulty)
 
CastSpellExtraArgs & SetOriginalCastId (ObjectGuid const &castId)
 
CastSpellExtraArgs & AddSpellMod (SpellValueMod mod, int32 val)
 
CastSpellExtraArgs & AddSpellMod (SpellValueModFloat mod, SpellEffectValue val)
 
CastSpellExtraArgs & AddSpellBP0 (SpellEffectValue val)
 
CastSpellExtraArgs & SetCustomArg (std::any customArg)
 
CastSpellExtraArgs & SetScriptResult (Scripting::v2::ActionResultSetter< SpellCastResult > &&scriptResult)
 
CastSpellExtraArgs & SetScriptWaitsForSpellHit (bool scriptWaitsForSpellHit)
 

Additional Inherited Members

- Public Attributes inherited from CastSpellExtraArgsInit
TriggerCastFlags TriggerFlags = TRIGGERED_NONE
 
Difficulty CastDifficulty = Difficulty(0)
 
Item * CastItem = nullptr
 
Spell const * TriggeringSpell = nullptr
 
AuraEffect const * TriggeringAura = nullptr
 
ObjectGuid OriginalCaster = ObjectGuid::Empty
 
ObjectGuid OriginalCastId = ObjectGuid::Empty
 
Optional< int32 > OriginalCastItemLevel
 
std::vector< SpellValueOverride > SpellValueOverrides
 
std::any CustomArg
 
Scripting::v2::ActionResultSetter< SpellCastResult > ScriptResult
 
bool ScriptWaitsForSpellHit = false
 

Detailed Description

Definition at line 520 of file SpellDefines.h.

Constructor & Destructor Documentation

◆ CastSpellExtraArgs() [1/12]

CastSpellExtraArgs::CastSpellExtraArgs ( )
default

◆ CastSpellExtraArgs() [2/12]

CastSpellExtraArgs::CastSpellExtraArgs ( bool  triggered)
inline

Definition at line 523 of file SpellDefines.h.

References TRIGGERED_FULL_MASK, and TRIGGERED_NONE.

◆ CastSpellExtraArgs() [3/12]

CastSpellExtraArgs::CastSpellExtraArgs ( TriggerCastFlags  trigger)
inline

Definition at line 524 of file SpellDefines.h.

◆ CastSpellExtraArgs() [4/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Item *  item)
inline

Definition at line 525 of file SpellDefines.h.

References TRIGGERED_FULL_MASK.

◆ CastSpellExtraArgs() [5/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Spell const *  triggeringSpell)
inline

Definition at line 526 of file SpellDefines.h.

References TRIGGERED_FULL_MASK.

◆ CastSpellExtraArgs() [6/12]

CastSpellExtraArgs::CastSpellExtraArgs ( AuraEffect const *  eff)
inline

Definition at line 527 of file SpellDefines.h.

References TRIGGERED_FULL_MASK.

◆ CastSpellExtraArgs() [7/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Difficulty  castDifficulty)
inline

Definition at line 528 of file SpellDefines.h.

◆ CastSpellExtraArgs() [8/12]

CastSpellExtraArgs::CastSpellExtraArgs ( SpellValueMod  mod,
int32  val 
)
inline

Definition at line 529 of file SpellDefines.h.

◆ CastSpellExtraArgs() [9/12]

CastSpellExtraArgs::CastSpellExtraArgs ( SpellValueModFloat  mod,
SpellEffectValue  val 
)
inline

Definition at line 530 of file SpellDefines.h.

◆ CastSpellExtraArgs() [10/12]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgsInit &&  init)
inline

Definition at line 531 of file SpellDefines.h.

◆ CastSpellExtraArgs() [11/12]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgs const &  other)
default

◆ CastSpellExtraArgs() [12/12]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgs &&  other)
defaultnoexcept

◆ ~CastSpellExtraArgs()

CastSpellExtraArgs::~CastSpellExtraArgs ( )
default

Member Function Documentation

◆ AddSpellBP0()

CastSpellExtraArgs & CastSpellExtraArgs::AddSpellBP0 ( SpellEffectValue  val)
inline

Definition at line 550 of file SpellDefines.h.

References SPELLVALUE_BASE_POINT0.

Referenced by spell_pri_guardian_spirit::Absorb(), spell_huhuran_wyvern_sting::AfterRemove(), player_overlord_brandAI::DamageDealt(), spell_igb_rocket_artillery_explosion::DamageGunship(), boss_elder_stonebark::boss_elder_stonebarkAI::DamageTaken(), spell_warr_colossus_smash::HandleAfterCast(), spell_igb_burning_pitch::HandleDummy(), spell_buru_egg_explosion::HandleDummy(), spell_deathbringer_blood_link::HandleDummy(), spell_general_vezax_saronite_vapors::spell_general_vezax_saronite_vapors_AuraScript::HandleEffectApply(), spell_moorabi_mojo_frenzy::HandlePeriodic(), spell_warr_fueled_by_violence::HandlePeriodic(), spell_nethermancer_sepethrea_inferno::HandlePeriodic(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_devourer_of_souls_mirrored_soul_proc::HandleProc(), spell_deathwhisper_vampiric_might::HandleProc(), spell_the_lich_king_dark_hunger::HandleProc(), spell_yogg_saron_grim_reprisal::spell_yogg_saron_grim_reprisal_AuraScript::HandleProc(), spell_dru_t3_8p_bonus::HandleProc(), spell_gen_blood_reserve::HandleProc(), spell_gen_vampiric_touch::HandleProc(), spell_hun_roar_of_sacrifice::HandleProc(), spell_item_alchemist_stone::HandleProc(), spell_item_blessing_of_ancient_kings::HandleProc(), spell_item_frozen_shadoweave::HandleProc(), spell_item_necrotic_touch::HandleProc(), spell_item_persistent_shield::HandleProc(), spell_item_pet_healing::HandleProc(), spell_item_swift_hand_justice_dummy::HandleProc(), spell_pal_t8_2p_bonus::HandleProc(), spell_rog_blade_flurry::HandleProc(), spell_pri_aq_3p_bonus::HandleProc(), spell_pri_t10_heal_2p_bonus::HandleProc(), spell_putricide_gaseous_bloat::HandleProc(), spell_warr_item_t10_prot_4p_bonus::HandleProc(), spell_igb_rocket_pack::HandleRemove(), spell_kelthuzad_detonate_mana::HandleScript(), spell_zuldrak_gymers_grab::HandleScript(), spell_gen_cannon_blast::HandleScript(), spell_hun_pet_heart_of_the_phoenix::HandleScript(), spell_gluth_decimate::HandleScriptEffect(), spell_putricide_mutated_plague::HandleTriggerSpell(), player_overlord_brandAI::HealDone(), spell_four_horsemen_mark::OnApply(), spell_the_lich_king_soul_rip::OnPeriodic(), spell_blood_queen_essence_of_the_blood_queen::OnProc(), spell_putricide_mutated_plague::OnRemove(), spell_sindragosa_instability::OnRemove(), spell_warl_devour_magic::OnSuccessfulDispel(), spell_blood_queen_pact_of_the_darkfallen_dmg::PeriodicTick(), spell_kelthuzad_frost_blast::PeriodicTick(), boss_deathbringer_saurfang::SpellHitTarget(), boss_sister_svalna::SpellHitTarget(), npc_simon_bunny::npc_simon_bunnyAI::SpellHitTarget(), BattlePets::BattlePetMgr::SummonPet(), and spell_the_lich_king_life_siphon::TriggerHeal().

◆ AddSpellMod() [1/2]

CastSpellExtraArgs & CastSpellExtraArgs::AddSpellMod ( SpellValueMod  mod,
int32  val 
)
inline

Definition at line 548 of file SpellDefines.h.

Referenced by spell_the_lich_king_necrotic_plague_jump_aura::AfterDispel(), Player::ApplyArtifactPowerRank(), Player::ApplyAzeriteEssence(), Player::CastItemCombatSpell(), npc_gas_cloud::CastMainSpell(), Pet::CastPetAura(), spell_pri_prayer_of_mending_SpellScriptBase::CastPrayerOfMendingAura(), boss_lady_deathwhisper::DamageTaken(), Spell::EffectDestroyAllTotems(), Spell::EffectFeedPet(), Spell::EffectForceCast(), Spell::EffectSummonType(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), Unit::EnterVehicle(), boss_sathrovarr::ExecuteEvent(), boss_twin_baseAI::ExecuteEvent(), spell_pri_crystalline_reflection::HandleAfterAbsorb(), spell_pri_holy_word_salvation::HandleApplyBuffs(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), spell_ahn_kahet_swarm::HandleDummy(), spell_ruby_sanctum_rallying_shout::HandleDummy(), spell_item_deadly_precision_dummy::HandleDummy(), spell_rog_roll_the_bones::HandleDummy(), spell_pri_shadow_mend_periodic_damage::HandleDummyTick(), spell_pri_shadow_mend::HandleEffectHit(), spell_mandokir_bloodletting::HandleEffectPeriodic(), spell_anubarak_leeching_swarm::HandleEffectPeriodic(), spell_general_vezax_mark_of_the_faceless::spell_general_vezax_mark_of_the_faceless_AuraScript::HandleEffectPeriodic(), spell_dk_permafrost::HandleEffectProc(), spell_pri_vampiric_embrace::HandleEffectProc(), spell_marwyn_shared_suffering::spell_marwyn_shared_suffering_AuraScript::HandleEffectRemove(), spell_rog_shadowstrike::HandleEnergize(), spell_putricide_gaseous_bloat::HandleExtraEffect(), spell_pri_prayer_of_mending_aura::HandleHeal(), spell_mage_ice_lance::HandleOnHit(), spell_pri_atonement_effect::HandleOnHitTarget(), spell_pri_power_leech_passive::HandleOnProc(), spell_algalon_phase_constellation::HandlePeriodic(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicTriggerSpellWithValueAuraTick(), spell_dru_bristling_fur::HandleProc(), spell_pal_awakening::HandleProc(), spell_dru_t10_balance_4p_bonus::HandleProc(), spell_dru_t10_restoration_4p_bonus_dummy::HandleProc(), spell_hun_t29_2p_marksmanship_bonus::HandleProc(), spell_mage_ignite::HandleProc(), spell_pal_light_s_beacon::HandleProc(), spell_warr_sweeping_strikes::HandleProc(), spell_warr_trauma::HandleProc(), spell_pal_t30_2p_protection_bonus::HandleProc(), spell_pal_t30_2p_protection_bonus_heal::HandleProc(), spell_rog_grand_melee::HandleProc(), spell_dk_dark_simulacrum::HandleProc(), spell_anetheron_vampiric_aura::HandleProc(), spell_dru_astral_smolder::HandleProc(), spell_pri_holy_10_1_class_set_2pc::HandleProc(), spell_pri_divine_aegis::HandleProc(), AuraEffect::HandleProcTriggerSpellWithValueAuraProc(), spell_warr_rallying_cry::HandleScript(), Unit::HandleSpellClick(), spell_halion_combustion_consumption_periodic::HandleTick(), boss_freya::boss_freyaAI::JustEngagedWith(), boss_sindragosa::MovementInform(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnApply(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_baron_geddon_inferno::OnPeriodic(), spell_brewfest_ram::OnPeriodic(), spell_anhuur_divine_reckoning::OnPeriodic(), spell_kalecgos_curse_of_boundless_agony::OnRemove(), spell_the_lich_king_necrotic_plague::OnRemove(), spell_anduin_wrynn_befouled_barrier_expire::OnRemove(), spell_halion_marks::OnRemove(), spell_the_lich_king_necrotic_plague_jump_aura::OnRemove(), at_rezan_pile_of_bones_slow::OnUnitEnter(), spell_bullet_controller::PeriodicTick(), spell_muru_negative_energy_periodic::PeriodicTick(), spell_jormungars_slime_pool::PeriodicTick(), spell_grobbulus_poison_cloud::PeriodicTick(), spell_wintergrasp_tenacity_refresh::Refresh(), npc_combustion_consumption::SetData(), BattlefieldTB::TowerDestroyed(), spell_dk_anti_magic_shell::Trigger(), spell_pri_atonement::TriggerAtonementHealOnTargets(), spell_item_strength_in_numbers::TriggerHealthBuff(), boss_coren_direbrew::UpdateAI(), alliance_rifleman::alliance_riflemanAI::UpdateAI(), boss_anubarak_trial::UpdateAI(), boss_jaraxxus::UpdateAI(), boss_sindragosa::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), and npc_infernal_rain_hellfire::UpdateAI().

◆ AddSpellMod() [2/2]

CastSpellExtraArgs & CastSpellExtraArgs::AddSpellMod ( SpellValueModFloat  mod,
SpellEffectValue  val 
)
inline

Definition at line 549 of file SpellDefines.h.

◆ operator=() [1/2]

CastSpellExtraArgs & CastSpellExtraArgs::operator= ( CastSpellExtraArgs &&  other)
defaultnoexcept

◆ operator=() [2/2]

CastSpellExtraArgs & CastSpellExtraArgs::operator= ( CastSpellExtraArgs const &  other)
default

◆ SetCastDifficulty()

CastSpellExtraArgs & CastSpellExtraArgs::SetCastDifficulty ( Difficulty  castDifficulty)
inline

◆ SetCastItem()

CastSpellExtraArgs & CastSpellExtraArgs::SetCastItem ( Item *  item)
inline

◆ SetCustomArg()

◆ SetOriginalCaster()

◆ SetOriginalCastId()

CastSpellExtraArgs & CastSpellExtraArgs::SetOriginalCastId ( ObjectGuid const &  castId)
inline

Definition at line 547 of file SpellDefines.h.

Referenced by AreaTrigger::DoActions(), and Aura::HandleAuraSpecificMods().

◆ SetScriptResult()

CastSpellExtraArgs & CastSpellExtraArgs::SetScriptResult ( Scripting::v2::ActionResultSetter< SpellCastResult > &&  scriptResult)
inline

Definition at line 552 of file SpellDefines.h.

Referenced by SmartScript::ProcessAction().

◆ SetScriptWaitsForSpellHit()

CastSpellExtraArgs & CastSpellExtraArgs::SetScriptWaitsForSpellHit ( bool  scriptWaitsForSpellHit)
inline

Definition at line 553 of file SpellDefines.h.

Referenced by SmartScript::ProcessAction().

◆ SetTriggerFlags()

◆ SetTriggeringAura()

CastSpellExtraArgs & CastSpellExtraArgs::SetTriggeringAura ( AuraEffect const *  triggeringAura)
inline

◆ SetTriggeringSpell()

CastSpellExtraArgs & CastSpellExtraArgs::SetTriggeringSpell ( Spell const *  triggeringSpell)

Definition at line 9646 of file Spell.cpp.

References Spell::m_castId, Spell::m_castItemLevel, CastSpellExtraArgsInit::OriginalCastId, CastSpellExtraArgsInit::OriginalCastItemLevel, and CastSpellExtraArgsInit::TriggeringSpell.

Referenced by Spell::_cast(), Spell::CheckCast(), Spell::DoTriggersOnSpellHit(), Spell::EffectDestroyAllTotems(), Spell::EffectFeedPet(), Spell::EffectInebriate(), Spell::EffectSummonType(), Spell::EffectTriggerMissileSpell(), spell_item_shiver_venom_weapon_proc::HandleAdditionalProc(), spell_dh_cycle_of_hatred::HandleCycleOfHatred(), spell_monk_mists_of_life::HandleEffectApply(), spell_pri_shadow_mend::HandleEffectHit(), spell_the_candle_king_darkflame_pickaxe_selector::HandleHitTarget(), spell_the_candle_king_darkflame_pickaxe_cast::HandleHitTarget(), spell_dk_apply_bone_shield::HandleHitTarget(), spell_evo_verdant_embrace::HandleLaunchTarget(), spell_pri_atonement_effect::HandleOnHitTarget(), spell_torghast_blade_of_the_lifetaker::HandleProc(), spell_torghast_touch_of_the_unseen::HandleProc(), spell_pri_holy_10_1_class_set_2pc::HandleProc(), AuraEffect::HandleProcTriggerSpellWithValueAuraProc(), spell_warl_vile_taint::HandleScriptEffect(), spell_priestess_alun_za_transfusion::HandleTransfusion(), spell_dru_efflorescence::InitSummon(), spell_pal_light_hammer_init_summon::InitSummon(), spell_warl_sayaad_precast_disorientation::OnPrecast(), spell_sha_fire_nova::TriggerDamage(), spell_sha_primordial_wave::TriggerDamage(), spell_dru_celestial_alignment::TriggerEclipses(), and spell_sha_molten_assault::TriggerFlameShocks().


The documentation for this struct was generated from the following files: