aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2013-07-25 14:14:30 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2013-07-25 14:14:30 +0200
commit54c200931808fa0a05a13e5c66c52b3703aa238a (patch)
treecc6d1c7522eed77cc260b036efd620bd63191026 /src
parent061edf9342cd299eda7b967b2b5fc73cf9aa7623 (diff)
Core/Spells: Fix some db startup error and add new
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp6
-rw-r--r--src/server/scripts/Spells/spell_mage.cpp3
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp54
-rw-r--r--src/server/scripts/Spells/spell_rogue.cpp2
-rw-r--r--src/server/scripts/Spells/spell_warlock.cpp29
-rw-r--r--src/server/scripts/Spells/spell_warrior.cpp4
6 files changed, 12 insertions, 86 deletions
diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp
index e977fcfba97..53662950bd7 100644
--- a/src/server/scripts/Spells/spell_druid.cpp
+++ b/src/server/scripts/Spells/spell_druid.cpp
@@ -166,7 +166,7 @@ class spell_dru_eclipse_energize : public SpellScriptLoader
}
};
-// -1850 - Dash
+// 1850 - Dash
class spell_dru_dash : public SpellScriptLoader
{
public:
@@ -739,7 +739,7 @@ class spell_dru_primal_tenacity : public SpellScriptLoader
}
};
-// -1079 - Rip
+// 1079 - Rip
class spell_dru_rip : public SpellScriptLoader
{
public:
@@ -1096,7 +1096,7 @@ class spell_dru_tiger_s_fury : public SpellScriptLoader
}
};
-// -61391 - Typhoon
+// 61391 - Typhoon
class spell_dru_typhoon : public SpellScriptLoader
{
public:
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp
index d0d3dd7a512..8e8af13a05e 100644
--- a/src/server/scripts/Spells/spell_mage.cpp
+++ b/src/server/scripts/Spells/spell_mage.cpp
@@ -454,8 +454,7 @@ class spell_mage_conjure_refreshment : public SpellScriptLoader
}
};
-// -543 - Fire Ward
-// -6143 - Frost Ward
+// 543 - Fire War
class spell_mage_fire_frost_ward : public SpellScriptLoader
{
public:
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index 2d3b214a389..67439cf7e51 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -60,14 +60,14 @@ enum PriestSpells
SPELL_PRIEST_TWIN_DISCIPLINES_RANK_1 = 47586,
SPELL_PRIEST_T9_HEALING_2P = 67201,
SPELL_PRIEST_VAMPIRIC_EMBRACE_HEAL = 15290,
- SPELL_PRIEST_VAMPIRIC_TOUCH_DISPEL = 64085,
+ SPELL_PRIEST_VAMPIRIC_TOUCH_DISPEL = 64085
};
enum PriestSpellIcons
{
PRIEST_ICON_ID_BORROWED_TIME = 2899,
PRIEST_ICON_ID_DIVINE_TOUCH_TALENT = 3021,
- PRIEST_ICON_ID_PAIN_AND_SUFFERING = 2874,
+ PRIEST_ICON_ID_PAIN_AND_SUFFERING = 2874
};
enum MiscSpells
@@ -440,7 +440,7 @@ class spell_pri_leap_of_faith_effect_trigger : public SpellScriptLoader
}
};
-// -7001 - Lightwell Renew
+// 7001 - Lightwell Renew
class spell_pri_lightwell_renew : public SpellScriptLoader
{
public:
@@ -756,7 +756,7 @@ class spell_pri_power_word_shield : public SpellScriptLoader
amount += int32(bonus);
// Twin Disciplines
- if (AuraEffect* twinDisciplines = caster->GetAuraEffectOfRankedSpell(SPELL_PRIEST_TWIN_DISCIPLINES_RANK_1, EFFECT_1))
+ if (AuraEffect const* twinDisciplines = caster->GetAuraEffectOfRankedSpell(SPELL_PRIEST_TWIN_DISCIPLINES_RANK_1, EFFECT_1))
AddPct(amount, twinDisciplines->GetAmount());
// Focused Power
@@ -770,7 +770,7 @@ class spell_pri_power_word_shield : public SpellScriptLoader
if (dmgInfo.GetAttacker() == target)
return;
- if (AuraEffect* talentAurEff = target->GetAuraEffectOfRankedSpell(SPELL_PRIEST_REFLECTIVE_SHIELD_R1, EFFECT_0))
+ if (AuraEffect const* talentAurEff = target->GetAuraEffectOfRankedSpell(SPELL_PRIEST_REFLECTIVE_SHIELD_R1, EFFECT_0))
{
int32 bp = CalculatePct(absorbAmount, talentAurEff->GetAmount());
target->CastCustomSpell(dmgInfo.GetAttacker(), SPELL_PRIEST_REFLECTIVE_SHIELD_TRIGGERED, &bp, NULL, NULL, true, NULL, aurEff);
@@ -825,49 +825,6 @@ class spell_pri_prayer_of_mending_heal : public SpellScriptLoader
}
};
-// 17 - Reflective Shield
-class spell_pri_reflective_shield_trigger : public SpellScriptLoader
-{
- public:
- spell_pri_reflective_shield_trigger() : SpellScriptLoader("spell_pri_reflective_shield_trigger") { }
-
- class spell_pri_reflective_shield_trigger_AuraScript : public AuraScript
- {
- PrepareAuraScript(spell_pri_reflective_shield_trigger_AuraScript);
-
- bool Validate(SpellInfo const* /*spellInfo*/) OVERRIDE
- {
- if (!sSpellMgr->GetSpellInfo(SPELL_PRIEST_REFLECTIVE_SHIELD_TRIGGERED) || !sSpellMgr->GetSpellInfo(SPELL_PRIEST_REFLECTIVE_SHIELD_R1))
- return false;
- return true;
- }
-
- void Trigger(AuraEffect* aurEff, DamageInfo & dmgInfo, uint32 & absorbAmount)
- {
- Unit* target = GetTarget();
- if (dmgInfo.GetAttacker() == target)
- return;
-
- if (GetCaster())
- if (AuraEffect* talentAurEff = target->GetAuraEffectOfRankedSpell(SPELL_PRIEST_REFLECTIVE_SHIELD_R1, EFFECT_0))
- {
- int32 bp = CalculatePct(absorbAmount, talentAurEff->GetAmount());
- target->CastCustomSpell(dmgInfo.GetAttacker(), SPELL_PRIEST_REFLECTIVE_SHIELD_TRIGGERED, &bp, NULL, NULL, true, NULL, aurEff);
- }
- }
-
- void Register() OVERRIDE
- {
- AfterEffectAbsorb += AuraEffectAbsorbFn(spell_pri_reflective_shield_trigger_AuraScript::Trigger, EFFECT_0);
- }
- };
-
- AuraScript* GetAuraScript() const OVERRIDE
- {
- return new spell_pri_reflective_shield_trigger_AuraScript();
- }
-};
-
// 139 - Renew
class spell_pri_renew : public SpellScriptLoader
{
@@ -1136,7 +1093,6 @@ void AddSC_priest_spell_scripts()
new spell_pri_phantasm();
new spell_pri_power_word_shield();
new spell_pri_prayer_of_mending_heal();
- new spell_pri_reflective_shield_trigger();
new spell_pri_renew();
new spell_pri_shadow_word_death();
new spell_pri_shadowform();
diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp
index de95c70b83b..fd29ab8b1e3 100644
--- a/src/server/scripts/Spells/spell_rogue.cpp
+++ b/src/server/scripts/Spells/spell_rogue.cpp
@@ -496,7 +496,7 @@ class spell_rog_recuperate : public SpellScriptLoader
}
};
-// -1943 - Rupture
+// 1943 - Rupture
class spell_rog_rupture : public SpellScriptLoader
{
public:
diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp
index c459ce07630..354db0ae864 100644
--- a/src/server/scripts/Spells/spell_warlock.cpp
+++ b/src/server/scripts/Spells/spell_warlock.cpp
@@ -968,34 +968,6 @@ class spell_warl_nether_ward_overrride : public SpellScriptLoader
}
};
-// 18541 - Ritual of Doom Effect
-class spell_warl_ritual_of_doom_effect : public SpellScriptLoader
-{
- public:
- spell_warl_ritual_of_doom_effect() : SpellScriptLoader("spell_warl_ritual_of_doom_effect") { }
-
- class spell_warl_ritual_of_doom_effect_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_warl_ritual_of_doom_effect_SpellScript);
-
- void HandleDummy(SpellEffIndex /*effIndex*/)
- {
- Unit* caster = GetCaster();
- caster->CastSpell(caster, GetEffectValue(), true);
- }
-
- void Register() OVERRIDE
- {
- OnEffectHit += SpellEffectFn(spell_warl_ritual_of_doom_effect_SpellScript::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
- }
- };
-
- SpellScript* GetSpellScript() const OVERRIDE
- {
- return new spell_warl_ritual_of_doom_effect_SpellScript();
- }
-};
-
// 6358 - Seduction (Special Ability)
class spell_warl_seduction : public SpellScriptLoader
{
@@ -1479,7 +1451,6 @@ void AddSC_warlock_spell_scripts()
new spell_warl_improved_soul_fire();
new spell_warl_life_tap();
new spell_warl_nether_ward_overrride();
- new spell_warl_ritual_of_doom_effect();
new spell_warl_seduction();
new spell_warl_seed_of_corruption();
new spell_warl_shadow_trance_proc();
diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp
index edc43772d41..12b68acc49d 100644
--- a/src/server/scripts/Spells/spell_warrior.cpp
+++ b/src/server/scripts/Spells/spell_warrior.cpp
@@ -459,7 +459,7 @@ class spell_warr_last_stand : public SpellScriptLoader
}
};
-// 7384, 7887, 11584, 11585 - Overpower
+// 7384 - Overpower
class spell_warr_overpower : public SpellScriptLoader
{
public:
@@ -538,7 +538,7 @@ class spell_warr_rallying_cry : public SpellScriptLoader
}
};
-// -772 - Rend
+// 772 - Rend
class spell_warr_rend : public SpellScriptLoader
{
public: