mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Cosmetic: Remove trailing whitespaces
This commit is contained in:
@@ -65,19 +65,19 @@ enum AssemblyEvents
|
||||
{
|
||||
// General
|
||||
EVENT_BERSERK = 1,
|
||||
|
||||
|
||||
// Steelbreaker
|
||||
EVENT_FUSION_PUNCH = 2,
|
||||
EVENT_STATIC_DISRUPTION = 3,
|
||||
EVENT_OVERWHELMING_POWER = 4,
|
||||
|
||||
|
||||
// Molgeim
|
||||
EVENT_RUNE_OF_POWER = 5,
|
||||
EVENT_SHIELD_OF_RUNES = 6,
|
||||
EVENT_RUNE_OF_DEATH = 7,
|
||||
EVENT_RUNE_OF_SUMMONING = 8,
|
||||
EVENT_LIGHTNING_BLAST = 9,
|
||||
|
||||
|
||||
// Brundir
|
||||
EVENT_CHAIN_LIGHTNING = 10,
|
||||
EVENT_OVERLOAD = 11,
|
||||
|
||||
@@ -1217,7 +1217,7 @@ class spell_gen_vehicle_scaling : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_gen_vehicle_scaling() : SpellScriptLoader("spell_gen_vehicle_scaling") { }
|
||||
|
||||
|
||||
class spell_gen_vehicle_scaling_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_gen_vehicle_scaling_AuraScript);
|
||||
@@ -1230,7 +1230,7 @@ class spell_gen_vehicle_scaling : public SpellScriptLoader
|
||||
|
||||
float factor;
|
||||
uint16 baseItemLevel;
|
||||
|
||||
|
||||
// TODO: Reserach coeffs for different vehicles
|
||||
switch (GetId())
|
||||
{
|
||||
@@ -1243,14 +1243,14 @@ class spell_gen_vehicle_scaling : public SpellScriptLoader
|
||||
baseItemLevel = 170;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
float avgILvl = caster->ToPlayer()->GetAverageItemLevel();
|
||||
if (avgILvl < baseItemLevel)
|
||||
return; // TODO: Research possibility of scaling down
|
||||
|
||||
|
||||
amount = uint16((avgILvl - baseItemLevel) * factor);
|
||||
}
|
||||
|
||||
|
||||
void Register()
|
||||
{
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_gen_vehicle_scaling_AuraScript::CalculateAmount, EFFECT_0, SPELL_AURA_MOD_HEALING_PCT);
|
||||
@@ -1258,7 +1258,7 @@ class spell_gen_vehicle_scaling : public SpellScriptLoader
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_gen_vehicle_scaling_AuraScript::CalculateAmount, EFFECT_2, SPELL_AURA_MOD_INCREASE_HEALTH_PERCENT);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
AuraScript* GetAuraScript() const
|
||||
{
|
||||
return new spell_gen_vehicle_scaling_AuraScript();
|
||||
|
||||
Reference in New Issue
Block a user