aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorSpp- <u84280@epreinf21.(none)>2011-06-30 14:24:56 +0200
committerSpp- <u84280@epreinf21.(none)>2011-06-30 14:24:56 +0200
commit6fd41ae50e5f988473f86ad8370b60a1e29eac5f (patch)
tree481e934be575ae4b0f44581e72e7ecc92d590ae1 /src/server/scripts/Spells
parentd12bb4a657e4df5230ce06f9b082f176d9db0b85 (diff)
Scripts: Reorder file names in Commands/CMakeList file and cosmetic changes in all scripts
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_generic.cpp2
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp10
-rw-r--r--src/server/scripts/Spells/spell_mage.cpp6
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp8
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp6
-rw-r--r--src/server/scripts/Spells/spell_quest.cpp2
-rw-r--r--src/server/scripts/Spells/spell_rogue.cpp6
-rw-r--r--src/server/scripts/Spells/spell_shaman.cpp4
8 files changed, 22 insertions, 22 deletions
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp
index 987572fe13c..c1b9b564ad1 100644
--- a/src/server/scripts/Spells/spell_generic.cpp
+++ b/src/server/scripts/Spells/spell_generic.cpp
@@ -647,7 +647,7 @@ class spell_gen_divine_storm_cd_reset : public SpellScriptLoader
void HandleScript(SpellEffIndex /*effIndex*/)
{
- if (Player *caster = GetCaster()->ToPlayer())
+ if (Player* caster = GetCaster()->ToPlayer())
if (caster->HasSpellCooldown(SPELL_DIVINE_STORM))
caster->RemoveSpellCooldown(SPELL_DIVINE_STORM, true);
}
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index d809df9f449..acf96f4e0a7 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -189,7 +189,7 @@ public:
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- Unit *caster = GetCaster();
+ Unit* caster = GetCaster();
int32 healthModSpellBasePoints0 = int32(caster->CountPctFromMaxHealth(30));
caster->CastCustomSpell(caster, HUNTER_PET_SPELL_LAST_STAND_TRIGGERED, &healthModSpellBasePoints0, NULL, NULL, true, NULL);
}
@@ -265,7 +265,7 @@ public:
PrepareSpellScript(spell_hun_readiness_SpellScript)
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- Unit *caster = GetCaster();
+ Unit* caster = GetCaster();
if (caster->GetTypeId() != TYPEID_PLAYER)
return;
@@ -423,8 +423,8 @@ public:
void HandleScript(SpellEffIndex /*effIndex*/)
{
- Unit *caster = GetCaster();
- Unit *owner = caster->GetOwner();
+ Unit* caster = GetCaster();
+ Unit* owner = caster->GetOwner();
if (!owner || caster->HasAura(HUNTER_PET_HEART_OF_THE_PHOENIX_DEBUFF))
return;
owner->CastCustomSpell(HUNTER_PET_HEART_OF_THE_PHOENIX_TRIGGERED, SPELLVALUE_BASE_POINT0, 100, caster, true);
@@ -470,7 +470,7 @@ public:
{
if (!GetHitUnit())
return;
- Unit *caster = GetCaster();
+ Unit* caster = GetCaster();
caster->CastSpell(caster, HUNTER_PET_SPELL_CARRION_FEEDER_TRIGGERED, false);
}
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp
index 95ed91f5a77..32dca054d43 100644
--- a/src/server/scripts/Spells/spell_mage.cpp
+++ b/src/server/scripts/Spells/spell_mage.cpp
@@ -81,7 +81,7 @@ class spell_mage_cold_snap : public SpellScriptLoader
PrepareSpellScript(spell_mage_cold_snap_SpellScript)
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- Unit *caster = GetCaster();
+ Unit* caster = GetCaster();
if (caster->GetTypeId() != TYPEID_PLAYER)
return;
@@ -137,7 +137,7 @@ class spell_mage_polymorph_cast_visual : public SpellScriptLoader
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- if (Unit *unitTarget = GetHitUnit())
+ if (Unit* unitTarget = GetHitUnit())
if (unitTarget->GetTypeId() == TYPEID_UNIT)
unitTarget->CastSpell(unitTarget, spell_list[urand(0, 5)], true);
}
@@ -186,7 +186,7 @@ class spell_mage_summon_water_elemental : public SpellScriptLoader
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- if (Unit *unitTarget = GetHitUnit())
+ if (Unit* unitTarget = GetHitUnit())
{
// Glyph of Eternal Water
if (unitTarget->HasAura(SPELL_MAGE_GLYPH_OF_ETERNAL_WATER))
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index 5902bc04885..031a7da97f2 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -138,7 +138,7 @@ public:
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- if (Unit *unitTarget = GetHitUnit())
+ if (Unit* unitTarget = GetHitUnit())
{
uint32 spell_id = 0;
switch(unitTarget->getClass())
@@ -273,9 +273,9 @@ public:
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- if (Unit *unitTarget = GetHitUnit())
+ if (Unit* unitTarget = GetHitUnit())
{
- Unit *caster = GetCaster();
+ Unit* caster = GetCaster();
uint8 rank = sSpellMgr->GetSpellRank(GetSpellInfo()->Id);
@@ -309,7 +309,7 @@ public:
PrepareSpellScript(spell_pal_judgement_of_command_SpellScript)
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- if (Unit *unitTarget = GetHitUnit())
+ if (Unit* unitTarget = GetHitUnit())
if (SpellEntry const* spell_proto = sSpellStore.LookupEntry(GetEffectValue()))
GetCaster()->CastSpell(unitTarget, spell_proto, true, NULL);
}
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index d4b6c293af7..2d35ed41bf0 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -158,7 +158,7 @@ class spell_pri_pain_and_suffering_proc : public SpellScriptLoader
void HandleEffectScriptEffect(SpellEffIndex /*effIndex*/)
{
// Refresh Shadow Word: Pain on target
- if (Unit *unitTarget = GetHitUnit())
+ if (Unit* unitTarget = GetHitUnit())
if (AuraEffect* aur = unitTarget->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_PRIEST, 0x8000, 0, 0, GetCaster()->GetGUID()))
aur->GetBase()->RefreshDuration();
}
@@ -203,11 +203,11 @@ class spell_pri_penance : public SpellScriptLoader
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- Unit *unitTarget = GetHitUnit();
+ Unit* unitTarget = GetHitUnit();
if (!unitTarget || !unitTarget->isAlive())
return;
- Unit *caster = GetCaster();
+ Unit* caster = GetCaster();
uint8 rank = sSpellMgr->GetSpellRank(GetSpellInfo()->Id);
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index 2d926118ed2..8a782e4ca2b 100644
--- a/src/server/scripts/Spells/spell_quest.cpp
+++ b/src/server/scripts/Spells/spell_quest.cpp
@@ -435,7 +435,7 @@ public:
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- Item *castItem = GetCastItem();
+ Item* castItem = GetCastItem();
if (!castItem)
return;
diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp
index 4e0f7d47674..4c2bdbfa4de 100644
--- a/src/server/scripts/Spells/spell_rogue.cpp
+++ b/src/server/scripts/Spells/spell_rogue.cpp
@@ -162,7 +162,7 @@ class spell_rog_preparation : public SpellScriptLoader
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- Unit *caster = GetCaster();
+ Unit* caster = GetCaster();
if (caster->GetTypeId() != TYPEID_PLAYER)
return;
@@ -269,11 +269,11 @@ class spell_rog_shiv : public SpellScriptLoader
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- Unit *caster = GetCaster();
+ Unit* caster = GetCaster();
if (caster->GetTypeId() != TYPEID_PLAYER)
return;
- if (Unit *unitTarget = GetHitUnit())
+ if (Unit* unitTarget = GetHitUnit())
caster->CastSpell(unitTarget, ROGUE_SPELL_SHIV_TRIGGERED, true);
}
diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp
index 2c84f7b97aa..8f81bb88fb2 100644
--- a/src/server/scripts/Spells/spell_shaman.cpp
+++ b/src/server/scripts/Spells/spell_shaman.cpp
@@ -166,7 +166,7 @@ public:
{
int32 effValue = GetEffectValue();
// Glyph of Mana Tide
- if (Unit *owner = caster->GetOwner())
+ if (Unit* owner = caster->GetOwner())
if (AuraEffect *dummy = owner->GetAuraEffect(SHAMAN_SPELL_GLYPH_OF_MANA_TIDE, 0))
effValue += dummy->GetAmount();
// Regenerate 6% of Total Mana Every 3 secs
@@ -210,7 +210,7 @@ public:
void HandleEffectPeriodic(AuraEffect const* aurEff)
{
Unit* target = GetTarget();
- if (Unit *caster = aurEff->GetBase()->GetCaster())
+ if (Unit* caster = aurEff->GetBase()->GetCaster())
if (AuraEffect* aur = caster->GetDummyAuraEffect(SPELLFAMILY_SHAMAN, 2289, 0))
if (roll_chance_i(aur->GetBaseAmount()))
target->CastSpell(target, SHAMAN_TOTEM_SPELL_EARTHEN_POWER, true, NULL, aurEff);