mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core: Generic cleanup (tab2spaces/trailing whitespace removal)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user