TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
spell_mage.cpp File Reference
#include "Player.h"
#include "ScriptMgr.h"
#include "SpellScript.h"
#include "SpellHistory.h"
#include "SpellAuraEffects.h"
#include "Pet.h"
#include "GridNotifiers.h"
+ Include dependency graph for spell_mage.cpp:

Classes

class  spell_mage_arcane_potency
 
class  spell_mage_arcane_potency::spell_mage_arcane_potency_AuraScript
 
class  spell_mage_incanters_absorbtion_base_AuraScript
 
class  spell_mage_blast_wave
 
class  spell_mage_blast_wave::spell_mage_blast_wave_SpellScript
 
class  spell_mage_blazing_speed
 
class  spell_mage_blazing_speed::spell_mage_blazing_speed_AuraScript
 
class  spell_mage_blizzard
 Updated 4.3.4. More...
 
class  spell_mage_blizzard::spell_mage_blizzard_SpellScript
 
class  spell_mage_cold_snap
 
class  spell_mage_cold_snap::spell_mage_cold_snap_SpellScript
 
class  spell_mage_cone_of_cold
 Updated 4.3.4. More...
 
class  spell_mage_cone_of_cold::spell_mage_cone_of_cold_SpellScript
 
struct  ConjureRefreshmentData
 Updated 6.0.3. More...
 
class  spell_mage_conjure_refreshment
 
class  spell_mage_conjure_refreshment::spell_mage_conjure_refreshment_SpellScript
 
class  spell_mage_conjure_refreshment_table
 
class  spell_mage_conjure_refreshment_table::spell_mage_conjure_refreshment_table_SpellScript
 
class  spell_mage_fire_frost_ward
 
class  spell_mage_fire_frost_ward::spell_mage_fire_frost_ward_AuraScript
 
class  spell_mage_focus_magic
 
class  spell_mage_focus_magic::spell_mage_focus_magic_AuraScript
 
class  spell_mage_frostbolt
 Updated 4.3.4. More...
 
class  spell_mage_frostbolt::spell_mage_frostbolt_SpellScript
 
class  spell_mage_glyph_of_ice_block
 
class  spell_mage_glyph_of_ice_block::spell_mage_glyph_of_ice_block_AuraScript
 
class  spell_mage_glyph_of_icy_veins
 
class  spell_mage_glyph_of_icy_veins::spell_mage_glyph_of_icy_veins_AuraScript
 
class  spell_mage_glyph_of_polymorph
 
class  spell_mage_glyph_of_polymorph::spell_mage_glyph_of_polymorph_AuraScript
 
class  spell_mage_living_bomb
 
class  spell_mage_living_bomb::spell_mage_living_bomb_AuraScript
 
class  spell_mage_ice_barrier
 Updated 4.3.4. More...
 
class  spell_mage_ice_barrier::spell_mage_ice_barrier_AuraScript
 
class  spell_mage_ignite
 
class  spell_mage_ignite::spell_mage_ignite_AuraScript
 
class  spell_mage_mage_ward
 Updated 4.3.4. More...
 
class  spell_mage_mage_ward::spell_mage_mage_ward_AuraScript
 
class  spell_mage_mana_shield
 Updated 4.3.4. More...
 
class  spell_mage_mana_shield::spell_mage_mana_shield_AuraScript
 
class  spell_mage_master_of_elements
 
class  spell_mage_master_of_elements::spell_mage_master_of_elements_AuraScript
 
class  spell_mage_nether_vortex
 
class  spell_mage_nether_vortex::spell_mage_nether_vortex_AuraScript
 
class  spell_mage_permafrost
 
class  spell_mage_permafrost::spell_mage_permafrost_AuraScript
 
class  spell_mage_polymorph
 
class  spell_mage_polymorph::spell_mage_polymorph_AuraScript
 
class  spell_mage_polymorph_cast_visual
 
class  spell_mage_polymorph_cast_visual::spell_mage_polymorph_cast_visual_SpellScript
 
class  spell_mage_replenish_mana
 Updated 4.3.4. More...
 
class  spell_mage_replenish_mana::spell_mage_replenish_mana_SpellScript
 
class  spell_mage_ring_of_frost
 Updated 4.3.4. More...
 
class  spell_mage_ring_of_frost::spell_mage_ring_of_frost_AuraScript
 
class  spell_mage_ring_of_frost_freeze
 Updated 4.3.4. More...
 
class  spell_mage_ring_of_frost_freeze::spell_mage_ring_of_frost_freeze_SpellScript
 
class  spell_mage_ring_of_frost_freeze::spell_mage_ring_of_frost_freeze_AuraScript
 
class  spell_mage_time_warp
 
class  spell_mage_time_warp::spell_mage_time_warp_SpellScript
 
class  spell_mage_water_elemental_freeze
 Updated 4.3.4. More...
 
class  spell_mage_water_elemental_freeze::spell_mage_water_elemental_freeze_SpellScript
 

Enumerations

enum  MageSpells {
  SPELL_POLYMORPH = 13323, SPELL_ICE_BLOCK = 27619, SPELL_BLIZZARD = 44178, SPELL_ICE_LANCE = 46194,
  SPELL_CONE_OF_COLD = 38384, SPELL_FROSTBOLT = 15043, SPELL_BLINK = 14514, SPELL_MAGE_CLONE_ME = 45204,
  SPELL_MAGE_MASTERS_THREAT_LIST = 58838, SPELL_MAGE_FROST_BOLT = 59638, SPELL_MAGE_FIRE_BLAST = 59637, SPELL_ARCANCE_POTENCY_RANK_1 = 31571,
  SPELL_ARCANCE_POTENCY_RANK_2 = 31572, SPELL_ARCANCE_POTENCY_TRIGGER_RANK_1 = 57529, SPELL_ARCANCE_POTENCY_TRIGGER_RANK_2 = 57531, SPELL_MAGE_BLAZING_SPEED = 31643,
  SPELL_MAGE_BURNOUT = 29077, SPELL_MAGE_COLD_SNAP = 11958, SPELL_MAGE_FOCUS_MAGIC_PROC = 54648, SPELL_MAGE_FROST_NOVA = 122,
  SPELL_MAGE_FROST_WARDING_R1 = 11189, SPELL_MAGE_FROST_WARDING_TRIGGERED = 57776, SPELL_MAGE_IMPROVED_POLYMORPH_RANK_1 = 11210, SPELL_MAGE_IMPROVED_POLYMORPH_STUN_RANK_1 = 83046,
  SPELL_MAGE_IMPROVED_POLYMORPH_MARKER = 87515, SPELL_MAGE_INCANTERS_ABSORBTION_R1 = 44394, SPELL_MAGE_INCANTERS_ABSORBTION_TRIGGERED = 44413, SPELL_MAGE_IGNITE = 12654,
  SPELL_MAGE_MASTER_OF_ELEMENTS_ENERGIZE = 29077, SPELL_MAGE_PERMAFROST = 91394, SPELL_MAGE_SLOW = 31589, SPELL_MAGE_SQUIRREL_FORM = 32813,
  SPELL_MAGE_GIRAFFE_FORM = 32816, SPELL_MAGE_SERPENT_FORM = 32817, SPELL_MAGE_DRAGONHAWK_FORM = 32818, SPELL_MAGE_WORGEN_FORM = 32819,
  SPELL_MAGE_SHEEP_FORM = 32820, SPELL_MAGE_GLYPH_OF_ETERNAL_WATER = 70937, SPELL_MAGE_SUMMON_WATER_ELEMENTAL_PERMANENT = 70908, SPELL_MAGE_SUMMON_WATER_ELEMENTAL_TEMPORARY = 70907,
  SPELL_MAGE_GLYPH_OF_BLAST_WAVE = 62126, SPELL_MAGE_FLAMESTRIKE = 2120, SPELL_MAGE_CHILLED_R1 = 12484, SPELL_MAGE_CHILLED_R2 = 12485,
  SPELL_MAGE_CONE_OF_COLD_AURA_R1 = 11190, SPELL_MAGE_CONE_OF_COLD_AURA_R2 = 12489, SPELL_MAGE_CONE_OF_COLD_TRIGGER_R1 = 83301, SPELL_MAGE_CONE_OF_COLD_TRIGGER_R2 = 83302,
  SPELL_MAGE_SHATTERED_BARRIER_R1 = 44745, SPELL_MAGE_SHATTERED_BARRIER_R2 = 54787, SPELL_MAGE_SHATTERED_BARRIER_FREEZE_R1 = 55080, SPELL_MAGE_SHATTERED_BARRIER_FREEZE_R2 = 83073,
  SPELL_MAGE_IMPROVED_MANA_GEM_TRIGGERED = 83098, SPELL_MAGE_RING_OF_FROST_SUMMON = 82676, SPELL_MAGE_RING_OF_FROST_FREEZE = 82691, SPELL_MAGE_RING_OF_FROST_DUMMY = 91264,
  SPELL_MAGE_FINGERS_OF_FROST = 44544, SPELL_MAGE_TEMPORAL_DISPLACEMENT = 80354, SPELL_PET_NETHERWINDS_FATIGUED = 160455
}
 
enum  MageIcons {
  ICON_MAGE_SHATTER = 976, ICON_MAGE_IMPROVED_FLAMESTRIKE = 37, ICON_MAGE_IMPROVED_FREEZE = 94, ICON_MAGE_INCANTER_S_ABSORPTION = 2941,
  ICON_MAGE_IMPROVED_MANA_GEM = 1036
}
 
enum  MiscSpells {
  SPELL_PORTAL_PERIODIC = 58008, SPELL_PORTAL_CHANNEL = 58012, SPELL_CRYSTAL_ACTIVATION = 57804, SPELL_TELEPORT_PLAYER = 62138,
  SPELL_TELEPORT_PLAYER_EFFECT = 62139, SPELL_DRAENEI_GIFT_OF_THE_NAARU = 59543, SPELL_MAGE_TEMPORAL_DISPLACEMENT = 80354, SPELL_SHAMAN_EXHAUSTION = 57723,
  SPELL_SHAMAN_SATED = 57724, SPELL_HUNTER_INSANITY = 95809, SPELL_PRIEST_SHADOW_WORD_DEATH = 32409, SPELL_SHAMAN_EXHAUSTION = 57723,
  SPELL_SHAMAN_SATED = 57724, SPELL_GENERIC_ARENA_DAMPENING = 74410, SPELL_GENERIC_BATTLEGROUND_DAMPENING = 74411, SPELL_GEN_REPLENISHMENT = 57669,
  SPELL_HUNTER_INSANITY = 95809, SPELL_MAGE_TEMPORAL_DISPLACEMENT = 80354, SPELL_GEN_REPLENISHMENT = 57669, SPELL_PRIEST_SHADOW_WORD_DEATH = 32409,
  SPELL_PALADIN_BLESSING_OF_SANCTUARY = 20911, SPELL_PALADIN_GREATER_BLESSING_OF_SANCTUARY = 25899, SPELL_PRIEST_RENEWED_HOPE = 63944
}
 
enum  SilvermoonPolymorph { NPC_AUROSALIA = 18744 }
 

Functions

void AddSC_mage_spell_scripts ()
 

Variables

uint8 const MAX_CONJURE_REFRESHMENT_SPELLS = 9
 
ConjureRefreshmentData const _conjureData [MAX_CONJURE_REFRESHMENT_SPELLS]
 
uint8 const MAX_CONJURE_REFRESHMENT_TABLE_SPELLS = 5
 
ConjureRefreshmentData const _conjureTableData [MAX_CONJURE_REFRESHMENT_TABLE_SPELLS]
 

Enumeration Type Documentation

enum MageIcons
Enumerator
ICON_MAGE_SHATTER 
ICON_MAGE_IMPROVED_FLAMESTRIKE 
ICON_MAGE_IMPROVED_FREEZE 
ICON_MAGE_INCANTER_S_ABSORPTION 
ICON_MAGE_IMPROVED_MANA_GEM 
92 {
93  ICON_MAGE_SHATTER = 976,
98 };
Definition: spell_mage.cpp:94
Definition: spell_mage.cpp:95
Definition: spell_mage.cpp:96
Definition: spell_mage.cpp:93
Definition: spell_mage.cpp:97
enum MageSpells
Enumerator
SPELL_POLYMORPH 
SPELL_ICE_BLOCK 
SPELL_BLIZZARD 
SPELL_ICE_LANCE 
SPELL_CONE_OF_COLD 
SPELL_FROSTBOLT 
SPELL_BLINK 
SPELL_MAGE_CLONE_ME 
SPELL_MAGE_MASTERS_THREAT_LIST 
SPELL_MAGE_FROST_BOLT 
SPELL_MAGE_FIRE_BLAST 
SPELL_ARCANCE_POTENCY_RANK_1 
SPELL_ARCANCE_POTENCY_RANK_2 
SPELL_ARCANCE_POTENCY_TRIGGER_RANK_1 
SPELL_ARCANCE_POTENCY_TRIGGER_RANK_2 
SPELL_MAGE_BLAZING_SPEED 
SPELL_MAGE_BURNOUT 
SPELL_MAGE_COLD_SNAP 
SPELL_MAGE_FOCUS_MAGIC_PROC 
SPELL_MAGE_FROST_NOVA 
SPELL_MAGE_FROST_WARDING_R1 
SPELL_MAGE_FROST_WARDING_TRIGGERED 
SPELL_MAGE_IMPROVED_POLYMORPH_RANK_1 
SPELL_MAGE_IMPROVED_POLYMORPH_STUN_RANK_1 
SPELL_MAGE_IMPROVED_POLYMORPH_MARKER 
SPELL_MAGE_INCANTERS_ABSORBTION_R1 
SPELL_MAGE_INCANTERS_ABSORBTION_TRIGGERED 
SPELL_MAGE_IGNITE 
SPELL_MAGE_MASTER_OF_ELEMENTS_ENERGIZE 
SPELL_MAGE_PERMAFROST 
SPELL_MAGE_SLOW 
SPELL_MAGE_SQUIRREL_FORM 
SPELL_MAGE_GIRAFFE_FORM 
SPELL_MAGE_SERPENT_FORM 
SPELL_MAGE_DRAGONHAWK_FORM 
SPELL_MAGE_WORGEN_FORM 
SPELL_MAGE_SHEEP_FORM 
SPELL_MAGE_GLYPH_OF_ETERNAL_WATER 
SPELL_MAGE_SUMMON_WATER_ELEMENTAL_PERMANENT 
SPELL_MAGE_SUMMON_WATER_ELEMENTAL_TEMPORARY 
SPELL_MAGE_GLYPH_OF_BLAST_WAVE 
SPELL_MAGE_FLAMESTRIKE 
SPELL_MAGE_CHILLED_R1 
SPELL_MAGE_CHILLED_R2 
SPELL_MAGE_CONE_OF_COLD_AURA_R1 
SPELL_MAGE_CONE_OF_COLD_AURA_R2 
SPELL_MAGE_CONE_OF_COLD_TRIGGER_R1 
SPELL_MAGE_CONE_OF_COLD_TRIGGER_R2 
SPELL_MAGE_SHATTERED_BARRIER_R1 
SPELL_MAGE_SHATTERED_BARRIER_R2 
SPELL_MAGE_SHATTERED_BARRIER_FREEZE_R1 
SPELL_MAGE_SHATTERED_BARRIER_FREEZE_R2 
SPELL_MAGE_IMPROVED_MANA_GEM_TRIGGERED 
SPELL_MAGE_RING_OF_FROST_SUMMON 
SPELL_MAGE_RING_OF_FROST_FREEZE 
SPELL_MAGE_RING_OF_FROST_DUMMY 
SPELL_MAGE_FINGERS_OF_FROST 
SPELL_MAGE_TEMPORAL_DISPLACEMENT 
SPELL_PET_NETHERWINDS_FATIGUED 
33 {
39  SPELL_MAGE_BURNOUT = 29077,
40  SPELL_MAGE_COLD_SNAP = 11958,
50  SPELL_MAGE_IGNITE = 12654,
52  SPELL_MAGE_PERMAFROST = 91394,
53  SPELL_MAGE_SLOW = 31589,
58  SPELL_MAGE_WORGEN_FORM = 32819,
59  SPELL_MAGE_SHEEP_FORM = 32820,
64 
66 
67  SPELL_MAGE_CHILLED_R1 = 12484,
68  SPELL_MAGE_CHILLED_R2 = 12485,
69 
74 
79 
81 
85 
89 };
Definition: spell_mage.cpp:40
Definition: spell_mage.cpp:72
Definition: spell_mage.cpp:86
Definition: spell_mage.cpp:63
Definition: spell_mage.cpp:47
Definition: spell_mage.cpp:35
Definition: spell_mage.cpp:68
Definition: spell_mage.cpp:39
Definition: spell_mage.cpp:57
Definition: spell_mage.cpp:43
Definition: spell_mage.cpp:58
Definition: spell_mage.cpp:45
Definition: spell_mage.cpp:48
Definition: spell_mage.cpp:52
Definition: spell_mage.cpp:42
Definition: spell_mage.cpp:82
Definition: spell_mage.cpp:37
Definition: spell_mage.cpp:88
Definition: spell_mage.cpp:65
Definition: spell_mage.cpp:76
Definition: spell_mage.cpp:46
Definition: spell_mage.cpp:53
Definition: spell_mage.cpp:34
Definition: spell_mage.cpp:59
Definition: spell_mage.cpp:67
Definition: spell_mage.cpp:77
Definition: spell_mage.cpp:49
Definition: spell_mage.cpp:83
Definition: spell_mage.cpp:55
Definition: spell_mage.cpp:36
Definition: spell_mage.cpp:71
Definition: spell_mage.cpp:62
Definition: spell_mage.cpp:41
Definition: spell_mage.cpp:61
Definition: spell_mage.cpp:87
Definition: spell_mage.cpp:44
Definition: spell_mage.cpp:73
Definition: spell_mage.cpp:80
Definition: spell_mage.cpp:50
Definition: spell_mage.cpp:75
Definition: spell_mage.cpp:60
Definition: spell_mage.cpp:84
Definition: spell_mage.cpp:78
Definition: spell_mage.cpp:51
Definition: spell_mage.cpp:54
Definition: spell_mage.cpp:56
Definition: spell_mage.cpp:70
Definition: spell_mage.cpp:38
enum MiscSpells
Enumerator
SPELL_PORTAL_PERIODIC 
SPELL_PORTAL_CHANNEL 
SPELL_CRYSTAL_ACTIVATION 
SPELL_TELEPORT_PLAYER 
SPELL_TELEPORT_PLAYER_EFFECT 
SPELL_DRAENEI_GIFT_OF_THE_NAARU 
SPELL_MAGE_TEMPORAL_DISPLACEMENT 
SPELL_SHAMAN_EXHAUSTION 
SPELL_SHAMAN_SATED 
SPELL_HUNTER_INSANITY 
SPELL_PRIEST_SHADOW_WORD_DEATH 
SPELL_SHAMAN_EXHAUSTION 
SPELL_SHAMAN_SATED 
SPELL_GENERIC_ARENA_DAMPENING 
SPELL_GENERIC_BATTLEGROUND_DAMPENING 
SPELL_GEN_REPLENISHMENT 
SPELL_HUNTER_INSANITY 
SPELL_MAGE_TEMPORAL_DISPLACEMENT 
SPELL_GEN_REPLENISHMENT 
SPELL_PRIEST_SHADOW_WORD_DEATH 
SPELL_PALADIN_BLESSING_OF_SANCTUARY 
SPELL_PALADIN_GREATER_BLESSING_OF_SANCTUARY 
SPELL_PRIEST_RENEWED_HOPE 
101 {
102  SPELL_HUNTER_INSANITY = 95809,
104  SPELL_SHAMAN_EXHAUSTION = 57723,
105  SPELL_SHAMAN_SATED = 57724
106 };
Definition: spell_mage.cpp:103
Definition: spell_mage.cpp:102
Definition: spell_mage.cpp:105
Definition: spell_mage.cpp:104
Enumerator
NPC_AUROSALIA 
1175 {
1176  NPC_AUROSALIA = 18744
1177 };
Definition: spell_mage.cpp:1176

Function Documentation

void AddSC_mage_spell_scripts ( )
1527 {
1529  new spell_mage_blast_wave();
1531  new spell_mage_blizzard();
1532  new spell_mage_cold_snap();
1537  new spell_mage_focus_magic();
1538  new spell_mage_frostbolt();
1539  new spell_mage_ice_barrier();
1540  new spell_mage_ignite();
1544  new spell_mage_living_bomb();
1545  new spell_mage_mage_ward();
1546  new spell_mage_mana_shield();
1549  new spell_mage_permafrost();
1550  new spell_mage_polymorph();
1555  new spell_mage_time_warp();
1557 }
Definition: spell_mage.cpp:236
Updated 4.3.4.
Definition: spell_mage.cpp:913
Definition: spell_mage.cpp:520
Updated 4.3.4.
Definition: spell_mage.cpp:945
Updated 4.3.4.
Definition: spell_mage.cpp:1233
Definition: spell_mage.cpp:673
Definition: spell_mage.cpp:182
Definition: spell_mage.cpp:1077
Definition: spell_mage.cpp:109
Updated 4.3.4.
Definition: spell_mage.cpp:1473
Definition: spell_mage.cpp:745
Definition: spell_mage.cpp:315
Updated 4.3.4.
Definition: spell_mage.cpp:1349
Definition: spell_mage.cpp:1032
Definition: spell_mage.cpp:715
Definition: spell_mage.cpp:470
Definition: spell_mage.cpp:1120
Updated 4.3.4.
Definition: spell_mage.cpp:353
Definition: spell_mage.cpp:1424
Definition: spell_mage.cpp:865
Definition: spell_mage.cpp:983
Updated 4.3.4.
Definition: spell_mage.cpp:638
Updated 4.3.4.
Definition: spell_mage.cpp:1272
Definition: spell_mage.cpp:410
Definition: spell_mage.cpp:1181
Updated 4.3.4.
Definition: spell_mage.cpp:824
Definition: spell_mage.cpp:784
Definition: spell_mage.cpp:585
Updated 4.3.4.
Definition: spell_mage.cpp:272

+ Here is the caller graph for this function:

Variable Documentation

Initial value:
=
{
{ 33, 43, 92739 },
{ 44, 53, 92799 },
{ 54, 63, 92802 },
{ 64, 73, 92805 },
{ 74, 79, 74625 },
{ 80, 84, 92822 },
{ 85, 89, 92727 },
{ 90, 99, 116130 },
{ 100, 100, 167143 }
}
Initial value:
=
{
{ 73, 79, 120056 },
{ 80, 84, 120055 },
{ 85, 89, 120054 },
{ 90, 99, 120053 },
{ 100, 100, 167145 }
}
uint8 const MAX_CONJURE_REFRESHMENT_SPELLS = 9
uint8 const MAX_CONJURE_REFRESHMENT_TABLE_SPELLS = 5