diff options
| author | leak <leakzx@googlemail.com> | 2011-01-26 01:03:35 +0100 |
|---|---|---|
| committer | leak <leakzx@googlemail.com> | 2011-01-26 01:03:35 +0100 |
| commit | 137b079eea2c8bff3bfa33099c016502beeb868a (patch) | |
| tree | 876ce4404a299c6ed7cccf79fc04d8ad4b29b385 /src/server/scripts/Spells | |
| parent | 57f85ab7da3c1759a0cef3bd0497253c54bf1218 (diff) | |
Core: Generic cleanup (tab2spaces/trailing whitespace removal)
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_dk.cpp | 2 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_generic.cpp | 4 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 2 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_mage.cpp | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 6c2c0c30fe9..6e50ae1b9b6 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -449,7 +449,7 @@ class spell_dk_will_of_the_necropolis : public SpellScriptLoader int32 remainingHp = int32(GetTarget()->GetHealth() - dmgInfo.GetDamage()); int32 minHp = int32(GetTarget()->CountPctFromMaxHealth(SpellMgr::CalculateSpellEffectAmount(talentProto, EFFECT_0, GetCaster()))); - + // Damage that would take you below [effect0] health or taken while you are at [effect0] if (remainingHp < minHp) absorbAmount = CalculatePctN(dmgInfo.GetDamage(), absorbPct); diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index 9f1bda521c2..a2ad0347540 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -532,7 +532,7 @@ class spell_gen_animal_blood : public SpellScriptLoader return false; return true; } - + void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { // Remove all auras with spell id 46221, except the one currently being applied @@ -690,7 +690,7 @@ class spell_gen_parachute_ic : public SpellScriptLoader return; if (target->ToPlayer()->m_movementInfo.fallTime > 2000) - target->CastSpell(target,SPELL_PARACHUTE_IC,true); + target->CastSpell(target,SPELL_PARACHUTE_IC,true); } void Register() diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index e9f53237553..d1d8620b028 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -751,7 +751,7 @@ enum AirRifleSpells class spell_item_red_rider_air_rifle : public SpellScriptLoader { public: - spell_item_red_rider_air_rifle() : SpellScriptLoader("spell_item_red_rider_air_rifle") { } + spell_item_red_rider_air_rifle() : SpellScriptLoader("spell_item_red_rider_air_rifle") { } class spell_item_red_rider_air_rifle_SpellScript : public SpellScript { diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp index 6561a1910a8..bf1d99513b6 100644 --- a/src/server/scripts/Spells/spell_mage.cpp +++ b/src/server/scripts/Spells/spell_mage.cpp @@ -227,7 +227,7 @@ public: bool Validate(SpellEntry const * /*spellEntry*/) { - return sSpellStore.LookupEntry(SPELL_MAGE_FROST_WARDING_TRIGGERED) + return sSpellStore.LookupEntry(SPELL_MAGE_FROST_WARDING_TRIGGERED) && sSpellStore.LookupEntry(SPELL_MAGE_FROST_WARDING_R1); } @@ -277,7 +277,7 @@ public: bool Validate(SpellEntry const * /*spellEntry*/) { - return sSpellStore.LookupEntry(SPELL_MAGE_INCANTERS_ABSORBTION_TRIGGERED) + return sSpellStore.LookupEntry(SPELL_MAGE_INCANTERS_ABSORBTION_TRIGGERED) && sSpellStore.LookupEntry(SPELL_MAGE_INCANTERS_ABSORBTION_R1); } @@ -322,7 +322,7 @@ public: bool Validate(SpellEntry const * /*spellEntry*/) { - return sSpellStore.LookupEntry(SPELL_MAGE_INCANTERS_ABSORBTION_TRIGGERED) + return sSpellStore.LookupEntry(SPELL_MAGE_INCANTERS_ABSORBTION_TRIGGERED) && sSpellStore.LookupEntry(SPELL_MAGE_INCANTERS_ABSORBTION_R1); } |
