aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_dk.cpp28
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp10
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp30
-rw-r--r--src/server/scripts/Spells/spell_item.cpp20
-rw-r--r--src/server/scripts/Spells/spell_mage.cpp14
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp12
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp14
-rw-r--r--src/server/scripts/Spells/spell_quest.cpp22
-rw-r--r--src/server/scripts/Spells/spell_rogue.cpp16
-rw-r--r--src/server/scripts/Spells/spell_shaman.cpp10
-rw-r--r--src/server/scripts/Spells/spell_warlock.cpp8
-rw-r--r--src/server/scripts/Spells/spell_warrior.cpp2
12 files changed, 93 insertions, 93 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp
index 80ee96a7578..f6492c9dee7 100644
--- a/src/server/scripts/Spells/spell_dk.cpp
+++ b/src/server/scripts/Spells/spell_dk.cpp
@@ -55,7 +55,7 @@ class spell_dk_anti_magic_shell_raid : public SpellScriptLoader
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// TODO: this should absorb limited amount of damage, but no info on calculation formula
amount = -1;
@@ -97,12 +97,12 @@ class spell_dk_anti_magic_shell_self : public SpellScriptLoader
return true;
}
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
return sSpellStore.LookupEntry(DK_SPELL_RUNIC_POWER_ENERGIZE);
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -115,7 +115,7 @@ class spell_dk_anti_magic_shell_self : public SpellScriptLoader
void Trigger(AuraEffect * aurEff, DamageInfo & /*dmgInfo*/, uint32 & absorbAmount)
{
- Unit * target = GetTarget();
+ Unit* target = GetTarget();
// damage absorbed by Anti-Magic Shell energizes the DK with additional runic power.
// This, if I'm not mistaken, shows that we get back ~20% of the absorbed damage as runic power.
int32 bp = absorbAmount * 2 / 10;
@@ -154,17 +154,17 @@ class spell_dk_anti_magic_zone : public SpellScriptLoader
return true;
}
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
return sSpellStore.LookupEntry(DK_SPELL_ANTI_MAGIC_SHELL_TALENT);
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
- SpellEntry const * talentSpell = sSpellStore.LookupEntry(DK_SPELL_ANTI_MAGIC_SHELL_TALENT);
+ SpellEntry const* talentSpell = sSpellStore.LookupEntry(DK_SPELL_ANTI_MAGIC_SHELL_TALENT);
amount = SpellMgr::CalculateSpellEffectAmount(talentSpell, EFFECT_0, GetCaster());
// assume caster is a player here
- if (Unit * caster = GetCaster())
+ if (Unit* caster = GetCaster())
amount += int32(2 * caster->ToPlayer()->GetTotalAttackPowerValue(BASE_ATTACK));
}
@@ -196,7 +196,7 @@ class spell_dk_corpse_explosion : public SpellScriptLoader
{
PrepareSpellScript(spell_dk_corpse_explosion_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(DK_SPELL_CORPSE_EXPLOSION_TRIGGERED))
return false;
@@ -370,7 +370,7 @@ class spell_dk_scourge_strike : public SpellScriptLoader
{
PrepareSpellScript(spell_dk_scourge_strike_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(DK_SPELL_SCOURGE_STRIKE_TRIGGERED))
return false;
@@ -417,7 +417,7 @@ class spell_dk_spell_deflection : public SpellScriptLoader
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -453,7 +453,7 @@ class spell_dk_blood_boil : public SpellScriptLoader
{
PrepareSpellScript(spell_dk_blood_boil_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(DK_SPELL_BLOOD_BOIL_TRIGGERED))
return false;
@@ -520,7 +520,7 @@ class spell_dk_will_of_the_necropolis : public SpellScriptLoader
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -530,7 +530,7 @@ class spell_dk_will_of_the_necropolis : public SpellScriptLoader
{
// min pct of hp is stored in effect 0 of talent spell
uint32 rank = sSpellMgr->GetSpellRank(GetSpellProto()->Id);
- SpellEntry const * talentProto = sSpellStore.LookupEntry(sSpellMgr->GetSpellWithRank(DK_SPELL_WILL_OF_THE_NECROPOLIS_TALENT_R1, rank));
+ SpellEntry const* talentProto = sSpellStore.LookupEntry(sSpellMgr->GetSpellWithRank(DK_SPELL_WILL_OF_THE_NECROPOLIS_TALENT_R1, rank));
int32 remainingHp = int32(GetTarget()->GetHealth() - dmgInfo.GetDamage());
int32 minHp = int32(GetTarget()->CountPctFromMaxHealth(SpellMgr::CalculateSpellEffectAmount(talentProto, EFFECT_0, GetCaster())));
diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp
index c2805715afa..1166ccdebb0 100644
--- a/src/server/scripts/Spells/spell_druid.cpp
+++ b/src/server/scripts/Spells/spell_druid.cpp
@@ -40,7 +40,7 @@ class spell_dru_glyph_of_starfire : public SpellScriptLoader
{
PrepareSpellScript(spell_dru_glyph_of_starfire_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(DRUID_INCREASED_MOONFIRE_DURATION))
return false;
@@ -53,7 +53,7 @@ class spell_dru_glyph_of_starfire : public SpellScriptLoader
{
Unit* caster = GetCaster();
if (Unit* unitTarget = GetHitUnit())
- if (AuraEffect const * aurEff = unitTarget->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_DRUID, 0x00000002, 0, 0, caster->GetGUID()))
+ if (AuraEffect const* aurEff = unitTarget->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_DRUID, 0x00000002, 0, 0, caster->GetGUID()))
{
Aura* aura = aurEff->GetBase();
@@ -102,7 +102,7 @@ class spell_dru_moonkin_form_passive : public SpellScriptLoader
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -146,7 +146,7 @@ class spell_dru_primal_tenacity : public SpellScriptLoader
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -190,7 +190,7 @@ class spell_dru_savage_defense : public SpellScriptLoader
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index 0b27375fcf3..d809df9f449 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -49,7 +49,7 @@ public:
class spell_hun_chimera_shot_SpellScript : public SpellScript
{
PrepareSpellScript(spell_hun_chimera_shot_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(HUNTER_SPELL_CHIMERA_SHOT_SERPENT))
return false;
@@ -80,7 +80,7 @@ public:
flag96 familyFlag = aura->GetSpellProto()->SpellFamilyFlags;
if (!(familyFlag[1] & 0x00000080 || familyFlag[0] & 0x0000C000))
continue;
- if (AuraEffect const * aurEff = aura->GetEffect(0))
+ if (AuraEffect const* aurEff = aura->GetEffect(0))
{
// Serpent Sting - Instantly deals 40% of the damage done by your Serpent Sting.
if (familyFlag[0] & 0x4000)
@@ -145,7 +145,7 @@ public:
class spell_hun_invigoration_SpellScript : public SpellScript
{
PrepareSpellScript(spell_hun_invigoration_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(HUNTER_SPELL_INVIGORATION_TRIGGERED))
return false;
@@ -180,7 +180,7 @@ public:
class spell_hun_last_stand_pet_SpellScript : public SpellScript
{
PrepareSpellScript(spell_hun_last_stand_pet_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(HUNTER_PET_SPELL_LAST_STAND_TRIGGERED))
return false;
@@ -215,7 +215,7 @@ public:
class spell_hun_masters_call_SpellScript : public SpellScript
{
PrepareSpellScript(spell_hun_masters_call_SpellScript)
- bool Validate(SpellEntry const * spellEntry)
+ bool Validate(SpellEntry const* spellEntry)
{
if (!sSpellStore.LookupEntry(HUNTER_SPELL_MASTERS_CALL_TRIGGERED))
return false;
@@ -228,14 +228,14 @@ public:
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
{
- if (Unit * target = GetHitUnit())
+ if (Unit* target = GetHitUnit())
{
target->CastSpell(target, GetEffectValue(), true);
target->CastSpell(target, HUNTER_SPELL_MASTERS_CALL_TRIGGERED, true);
// there is a possibility that this effect should access effect 0 (dummy) target, but i dubt that
// it's more likely that on on retail it's possible to call target selector based on dbc values
// anyways, we're using GetTargetUnit() here and it's ok
- if (Unit * ally = GetTargetUnit())
+ if (Unit* ally = GetTargetUnit())
{
target->CastSpell(ally, GetEffectValue(), true);
target->CastSpell(ally, SpellMgr::CalculateSpellEffectAmount(GetSpellInfo(), EFFECT_0), true);
@@ -348,7 +348,7 @@ public:
class spell_hun_sniper_training_AuraScript : public AuraScript
{
PrepareAuraScript(spell_hun_sniper_training_AuraScript)
- bool Validate(SpellEntry const * /*entry*/)
+ bool Validate(SpellEntry const* /*entry*/)
{
if (!sSpellStore.LookupEntry(SPELL_SNIPER_TRAINING_R1))
return false;
@@ -357,22 +357,22 @@ public:
return true;
}
- void HandlePeriodic(AuraEffect const * aurEff)
+ void HandlePeriodic(AuraEffect const* aurEff)
{
PreventDefaultAction();
if (aurEff->GetAmount() > 0)
return;
- Unit * caster = GetCaster();
+ Unit* caster = GetCaster();
if (!caster)
return;
uint32 spellId = SPELL_SNIPER_TRAINING_BUFF_R1 + GetId() - SPELL_SNIPER_TRAINING_R1;
- Unit * pTarget = GetTarget();
+ Unit* pTarget = GetTarget();
if (!pTarget->HasAura(spellId))
{
- SpellEntry const * triggeredSpellInfo = sSpellStore.LookupEntry(spellId);
+ SpellEntry const* triggeredSpellInfo = sSpellStore.LookupEntry(spellId);
Unit* triggerCaster = GetTriggeredSpellCaster(triggeredSpellInfo, caster, pTarget);
triggerCaster->CastSpell(pTarget, triggeredSpellInfo, true, 0, aurEff);
}
@@ -380,7 +380,7 @@ public:
void HandleUpdatePeriodic(AuraEffect * aurEff)
{
- Unit * pTarget = GetUnitOwner();
+ Unit* pTarget = GetUnitOwner();
if (Player* pPlayerTarget = pTarget->ToPlayer())
{
int32 baseAmount = aurEff->GetBaseAmount();
@@ -412,7 +412,7 @@ public:
class spell_hun_pet_heart_of_the_phoenix_SpellScript : public SpellScript
{
PrepareSpellScript(spell_hun_pet_heart_of_the_phoenix_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(HUNTER_PET_HEART_OF_THE_PHOENIX_TRIGGERED))
return false;
@@ -459,7 +459,7 @@ public:
class spell_hun_pet_carrion_feeder_SpellScript : public SpellScript
{
PrepareSpellScript(spell_hun_pet_carrion_feeder_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(HUNTER_PET_SPELL_CARRION_FEEDER_TRIGGERED))
return false;
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index ef3409b8ab7..76ef4eb2ccc 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -42,7 +42,7 @@ public:
public:
spell_item_trigger_spell_SpellScript(uint32 triggeredSpellId) : SpellScript(), _triggeredSpellId(triggeredSpellId) { }
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(_triggeredSpellId))
return false;
@@ -87,7 +87,7 @@ public:
{
PrepareSpellScript(spell_item_deviate_fish_SpellScript)
public:
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
for (uint32 spellId = SPELL_SLEEPY; spellId <= SPELL_HEALTHY_SPIRIT; ++spellId)
if (!sSpellStore.LookupEntry(spellId))
@@ -135,7 +135,7 @@ public:
{
public:
PrepareSpellScript(spell_item_flask_of_the_north_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_FLASK_OF_THE_NORTH_SP))
return false;
@@ -211,7 +211,7 @@ public:
{
public:
PrepareSpellScript(spell_item_gnomish_death_ray_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_GNOMISH_DEATH_RAY_SELF))
return false;
@@ -264,7 +264,7 @@ public:
{
public:
PrepareSpellScript(spell_item_make_a_wish_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_MR_PINCHYS_BLESSING))
return false;
@@ -381,7 +381,7 @@ public:
{
public:
PrepareSpellScript(spell_item_net_o_matic_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_NET_O_MATIC_TRIGGERED1))
return false;
@@ -437,7 +437,7 @@ public:
{
public:
PrepareSpellScript(spell_item_noggenfogger_elixir_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED1))
return false;
@@ -495,7 +495,7 @@ public:
{
public:
PrepareSpellScript(spell_item_savory_deviate_delight_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
for (uint32 spellId = SPELL_FLIP_OUT_MALE; spellId <= SPELL_YAAARRRR_FEMALE; ++spellId)
if (!sSpellStore.LookupEntry(spellId))
@@ -553,7 +553,7 @@ public:
{
public:
PrepareSpellScript(spell_item_six_demon_bag_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_FROSTBOLT))
return false;
@@ -632,7 +632,7 @@ public:
{
public:
PrepareSpellScript(spell_item_underbelly_elixir_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_UNDERBELLY_ELIXIR_TRIGGERED1))
return false;
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp
index 7fee2db9aa1..95ed91f5a77 100644
--- a/src/server/scripts/Spells/spell_mage.cpp
+++ b/src/server/scripts/Spells/spell_mage.cpp
@@ -46,7 +46,7 @@ class spell_mage_blast_wave : public SpellScriptLoader
class spell_mage_blast_wave_SpellScript : public SpellScript
{
PrepareSpellScript(spell_mage_blast_wave_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_MAGE_GLYPH_OF_BLAST_WAVE))
return false;
@@ -126,7 +126,7 @@ class spell_mage_polymorph_cast_visual : public SpellScriptLoader
PrepareSpellScript(spell_mage_polymorph_cast_visual_SpellScript)
static const uint32 spell_list[6];
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
// check if spell ids exist in dbc
for (int i = 0; i < 6; i++)
@@ -173,7 +173,7 @@ class spell_mage_summon_water_elemental : public SpellScriptLoader
class spell_mage_summon_water_elemental_SpellScript : public SpellScript
{
PrepareSpellScript(spell_mage_summon_water_elemental_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_MAGE_GLYPH_OF_ETERNAL_WATER))
return false;
@@ -225,7 +225,7 @@ public:
SPELL_MAGE_FROST_WARDING_R1 = 28332,
};
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
return sSpellStore.LookupEntry(SPELL_MAGE_FROST_WARDING_TRIGGERED)
&& sSpellStore.LookupEntry(SPELL_MAGE_FROST_WARDING_R1);
@@ -233,7 +233,7 @@ public:
void Absorb(AuraEffect * aurEff, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
- Unit * target = GetTarget();
+ Unit* target = GetTarget();
if (AuraEffect * talentAurEff = target->GetAuraEffectOfRankedSpell(SPELL_MAGE_FROST_WARDING_R1, EFFECT_0))
{
int32 chance = SpellMgr::CalculateSpellEffectAmount(talentAurEff->GetSpellProto(), EFFECT_1);
@@ -268,7 +268,7 @@ public:
SPELL_MAGE_INCANTERS_ABSORBTION_R1 = 44394,
};
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
return sSpellStore.LookupEntry(SPELL_MAGE_INCANTERS_ABSORBTION_TRIGGERED)
&& sSpellStore.LookupEntry(SPELL_MAGE_INCANTERS_ABSORBTION_R1);
@@ -276,7 +276,7 @@ public:
void Trigger(AuraEffect * aurEff, DamageInfo & /*dmgInfo*/, uint32 & absorbAmount)
{
- Unit * target = GetTarget();
+ Unit* target = GetTarget();
if (AuraEffect * talentAurEff = target->GetAuraEffectOfRankedSpell(SPELL_MAGE_INCANTERS_ABSORBTION_R1, EFFECT_0))
{
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index fd37c258fc4..5902bc04885 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -63,7 +63,7 @@ public:
return GetUnitOwner()->ToPlayer();
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -71,7 +71,7 @@ public:
void Absorb(AuraEffect * aurEff, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
- Unit * pVictim = GetTarget();
+ Unit* pVictim = GetTarget();
int32 remainingHealth = pVictim->GetHealth() - dmgInfo.GetDamage();
uint32 allowedHealth = pVictim->CountPctFromMaxHealth(35);
// If damage kills us
@@ -123,7 +123,7 @@ public:
class spell_pal_blessing_of_faith_SpellScript : public SpellScript
{
PrepareSpellScript(spell_pal_blessing_of_faith_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_BLESSING_OF_LOWER_CITY_DRUID))
return false;
@@ -184,14 +184,14 @@ public:
return true;
}
- void HandleEffectApply(AuraEffect const * /*aurEff*/, AuraEffectHandleModes /*mode*/)
+ void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* pTarget = GetTarget();
if (Unit* pCaster = GetCaster())
pCaster->CastSpell(pTarget, PALADIN_SPELL_BLESSING_OF_SANCTUARY_BUFF, true);
}
- void HandleEffectRemove(AuraEffect const * /*aurEff*/, AuraEffectHandleModes /*mode*/)
+ void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* pTarget = GetTarget();
pTarget->RemoveAura(PALADIN_SPELL_BLESSING_OF_SANCTUARY_BUFF, GetCasterGUID());
@@ -219,7 +219,7 @@ public:
class spell_pal_guarded_by_the_light_SpellScript : public SpellScript
{
PrepareSpellScript(spell_pal_guarded_by_the_light_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(PALADIN_SPELL_DIVINE_PLEA))
return false;
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index 98504899da5..d4b6c293af7 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -46,7 +46,7 @@ class spell_pri_guardian_spirit : public SpellScriptLoader
uint32 healPct;
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
return sSpellStore.LookupEntry(PRIEST_SPELL_GUARDIAN_SPIRIT_HEAL) != NULL;
}
@@ -57,7 +57,7 @@ class spell_pri_guardian_spirit : public SpellScriptLoader
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -65,7 +65,7 @@ class spell_pri_guardian_spirit : public SpellScriptLoader
void Absorb(AuraEffect * /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
- Unit * target = GetTarget();
+ Unit* target = GetTarget();
if (dmgInfo.GetDamage() < target->GetHealth())
return;
@@ -184,7 +184,7 @@ class spell_pri_penance : public SpellScriptLoader
{
PrepareSpellScript(spell_pri_penance_SpellScript);
- bool Validate(SpellEntry const * spellEntry)
+ bool Validate(SpellEntry const* spellEntry)
{
if (!sSpellStore.LookupEntry(PRIEST_SPELL_PENANCE_R1))
return false;
@@ -240,17 +240,17 @@ class spell_pri_reflective_shield_trigger : public SpellScriptLoader
{
PrepareAuraScript(spell_pri_reflective_shield_trigger_AuraScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
return sSpellStore.LookupEntry(PRIEST_SPELL_REFLECTIVE_SHIELD_TRIGGERED) && sSpellStore.LookupEntry(PRIEST_SPELL_REFLECTIVE_SHIELD_R1);
}
void Trigger(AuraEffect * aurEff, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
- Unit * target = GetTarget();
+ Unit* target = GetTarget();
if (dmgInfo.GetAttacker() == target)
return;
- Unit * caster = GetCaster();
+ Unit* caster = GetCaster();
if (!caster)
return;
if (AuraEffect * talentAurEff = target->GetAuraEffectOfRankedSpell(PRIEST_SPELL_REFLECTIVE_SHIELD_R1, EFFECT_0))
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index 8c0f17d8d95..75cb838b1c0 100644
--- a/src/server/scripts/Spells/spell_quest.cpp
+++ b/src/server/scripts/Spells/spell_quest.cpp
@@ -94,7 +94,7 @@ public:
class spell_q5206_test_fetid_skull_SpellScript : public SpellScript
{
PrepareSpellScript(spell_q5206_test_fetid_skull_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_CREATE_RESONATING_SKULL))
return false;
@@ -219,14 +219,14 @@ public:
class spell_q11396_11399_force_shield_arcane_purple_x3_AuraScript : public AuraScript
{
PrepareAuraScript(spell_q11396_11399_force_shield_arcane_purple_x3_AuraScript)
- void HandleEffectApply(AuraEffect const * /*aurEff*/, AuraEffectHandleModes /*mode*/)
+ void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* pTarget = GetTarget();
pTarget->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
pTarget->AddUnitState(UNIT_STAT_ROOT);
}
- void HandleEffectRemove(AuraEffect const * /*aurEff*/, AuraEffectHandleModes /*mode*/)
+ void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetTarget()->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
}
@@ -254,7 +254,7 @@ public:
class spell_q11396_11399_scourging_crystal_controller_SpellScript : public SpellScript
{
PrepareSpellScript(spell_q11396_11399_scourging_crystal_controller_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_FORCE_SHIELD_ARCANE_PURPLE_X3))
return false;
@@ -293,7 +293,7 @@ public:
class spell_q11396_11399_scourging_crystal_controller_dummy_SpellScript : public SpellScript
{
PrepareSpellScript(spell_q11396_11399_scourging_crystal_controller_dummy_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_FORCE_SHIELD_ARCANE_PURPLE_X3))
return false;
@@ -355,7 +355,7 @@ public:
class spell_q11587_arcane_prisoner_rescue_SpellScript : public SpellScript
{
PrepareSpellScript(spell_q11587_arcane_prisoner_rescue_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_SUMMON_ARCANE_PRISONER_MALE))
return false;
@@ -416,7 +416,7 @@ public:
class spell_q11730_ultrasonic_screwdriver_SpellScript : public SpellScript
{
PrepareSpellScript(spell_q11730_ultrasonic_screwdriver_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_SUMMON_SCAVENGEBOT_004A8))
return false;
@@ -545,7 +545,7 @@ public:
{
public:
PrepareSpellScript(spell_q12634_despawn_fruit_tosser_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_BANANAS_FALL_TO_GROUND))
return false;
@@ -640,7 +640,7 @@ public:
{
public:
PrepareAuraScript(spell_q12851_going_bearback_AuraScript)
- void HandleEffectApply(AuraEffect const * /*aurEff*/, AuraEffectHandleModes /*mode*/)
+ void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (Unit* caster = GetCaster())
{
@@ -694,7 +694,7 @@ public:
{
public:
PrepareSpellScript(spell_q12937_relief_for_the_fallen_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_TRIGGER_AID_OF_THE_EARTHEN))
return false;
@@ -745,7 +745,7 @@ class spell_q10041_q10040_who_are_they : public SpellScriptLoader
{
PrepareSpellScript(spell_q10041_q10040_who_are_they_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SPELL_QUESTGIVER))
return false;
diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp
index b5be2691ae8..3dc3e315c6e 100644
--- a/src/server/scripts/Spells/spell_rogue.cpp
+++ b/src/server/scripts/Spells/spell_rogue.cpp
@@ -48,7 +48,7 @@ public:
ROG_SPELL_CHEAT_DEATH_COOLDOWN = 31231,
};
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
return sSpellStore.LookupEntry(ROG_SPELL_CHEAT_DEATH_COOLDOWN);
}
@@ -59,7 +59,7 @@ public:
return GetUnitOwner()->ToPlayer();
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -67,7 +67,7 @@ public:
void Absorb(AuraEffect * /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
- Unit * target = GetTarget();
+ Unit* target = GetTarget();
if (dmgInfo.GetDamage() < target->GetHealth())
return;
if (target->ToPlayer()->HasSpellCooldown(ROG_SPELL_CHEAT_DEATH_COOLDOWN))
@@ -119,7 +119,7 @@ public:
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -153,7 +153,7 @@ class spell_rog_preparation : public SpellScriptLoader
class spell_rog_preparation_SpellScript : public SpellScript
{
PrepareSpellScript(spell_rog_preparation_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(ROGUE_SPELL_GLYPH_OF_PREPARATION))
return false;
@@ -217,14 +217,14 @@ public:
class spell_rog_prey_on_the_weak_AuraScript : public AuraScript
{
PrepareAuraScript(spell_rog_prey_on_the_weak_AuraScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(ROGUE_SPELL_PREY_ON_THE_WEAK))
return false;
return true;
}
- void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
+ void HandleEffectPeriodic(AuraEffect const* /*aurEff*/)
{
Unit* pTarget = GetTarget();
Unit* pVictim = pTarget->getVictim();
@@ -260,7 +260,7 @@ class spell_rog_shiv : public SpellScriptLoader
class spell_rog_shiv_SpellScript : public SpellScript
{
PrepareSpellScript(spell_rog_shiv_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(ROGUE_SPELL_SHIV_TRIGGERED))
return false;
diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp
index 762dd9292a8..63c57155cec 100644
--- a/src/server/scripts/Spells/spell_shaman.cpp
+++ b/src/server/scripts/Spells/spell_shaman.cpp
@@ -54,7 +54,7 @@ public:
return true;
}
- void CalculateAmount(AuraEffect const * /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
+ void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
amount = -1;
@@ -89,7 +89,7 @@ public:
class spell_sha_fire_nova_SpellScript : public SpellScript
{
PrepareSpellScript(spell_sha_fire_nova_SpellScript)
- bool Validate(SpellEntry const * spellEntry)
+ bool Validate(SpellEntry const* spellEntry)
{
if (!sSpellStore.LookupEntry(SHAMAN_SPELL_FIRE_NOVA_R1))
return false;
@@ -148,7 +148,7 @@ public:
class spell_sha_mana_tide_totem_SpellScript : public SpellScript
{
PrepareSpellScript(spell_sha_mana_tide_totem_SpellScript)
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SHAMAN_SPELL_GLYPH_OF_MANA_TIDE))
return false;
@@ -198,7 +198,7 @@ public:
{
PrepareAuraScript(spell_sha_earthbind_totem_AuraScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(SHAMAN_TOTEM_SPELL_EARTHBIND_TOTEM))
return false;
@@ -207,7 +207,7 @@ public:
return true;
}
- void HandleEffectPeriodic(AuraEffect const * aurEff)
+ void HandleEffectPeriodic(AuraEffect const* aurEff)
{
Unit* target = GetTarget();
if (Unit *caster = aurEff->GetBase()->GetCaster())
diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp
index 0a361e642ab..a7b99aed6b5 100644
--- a/src/server/scripts/Spells/spell_warlock.cpp
+++ b/src/server/scripts/Spells/spell_warlock.cpp
@@ -46,7 +46,7 @@ class spell_warl_demonic_empowerment : public SpellScriptLoader
{
PrepareSpellScript(spell_warl_demonic_empowerment_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(WARLOCK_DEMONIC_EMPOWERMENT_SUCCUBUS))
return false;
@@ -67,7 +67,7 @@ class spell_warl_demonic_empowerment : public SpellScriptLoader
{
if (targetCreature->isPet())
{
- CreatureTemplate const * ci = sObjectMgr->GetCreatureTemplate(targetCreature->GetEntry());
+ CreatureTemplate const* ci = sObjectMgr->GetCreatureTemplate(targetCreature->GetEntry());
switch (ci->family)
{
case CREATURE_FAMILY_SUCCUBUS:
@@ -119,7 +119,7 @@ class spell_warl_create_healthstone : public SpellScriptLoader
static uint32 const iTypes[8][3];
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(WARLOCK_IMPROVED_HEALTHSTONE_R1))
return false;
@@ -134,7 +134,7 @@ class spell_warl_create_healthstone : public SpellScriptLoader
{
uint32 rank = 0;
// Improved Healthstone
- if (AuraEffect const * aurEff = unitTarget->GetDummyAuraEffect(SPELLFAMILY_WARLOCK, 284, 0))
+ if (AuraEffect const* aurEff = unitTarget->GetDummyAuraEffect(SPELLFAMILY_WARLOCK, 284, 0))
{
switch (aurEff->GetId())
{
diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp
index 83c3d9c137c..3574c5c03fc 100644
--- a/src/server/scripts/Spells/spell_warrior.cpp
+++ b/src/server/scripts/Spells/spell_warrior.cpp
@@ -37,7 +37,7 @@ class spell_warr_last_stand : public SpellScriptLoader
{
PrepareSpellScript(spell_warr_last_stand_SpellScript);
- bool Validate(SpellEntry const * /*spellEntry*/)
+ bool Validate(SpellEntry const* /*spellEntry*/)
{
if (!sSpellStore.LookupEntry(WARRIOR_SPELL_LAST_STAND_TRIGGERED))
return false;