mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core: Random changes
This commit is contained in:
@@ -123,7 +123,7 @@ struct UnitFlag
|
||||
|
||||
#define UNIT_FLAGS_MAX 33
|
||||
|
||||
UnitFlag const unitFlags[MECHANIC_MAX] =
|
||||
UnitFlag const unitFlags[UNIT_FLAGS_MAX] =
|
||||
{
|
||||
{ UNIT_FLAG_SERVER_CONTROLLED , "UNIT_FLAG_SERVER_CONTROLLED" },
|
||||
{ UNIT_FLAG_NON_ATTACKABLE , "UNIT_FLAG_NON_ATTACKABLE" },
|
||||
|
||||
@@ -535,13 +535,13 @@ class spell_oculus_touch_the_nightmare : public SpellScriptLoader
|
||||
SetHitDamage(int32(GetCaster()->CountPctFromMaxHealth(30)));
|
||||
}
|
||||
|
||||
void Register()
|
||||
void Register() OVERRIDE
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_oculus_touch_the_nightmare_SpellScript::HandleDamageCalc, EFFECT_2, SPELL_EFFECT_SCHOOL_DAMAGE);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
SpellScript* GetSpellScript() const OVERRIDE
|
||||
{
|
||||
return new spell_oculus_touch_the_nightmare_SpellScript();
|
||||
}
|
||||
@@ -564,14 +564,14 @@ class spell_oculus_dream_funnel: public SpellScriptLoader
|
||||
canBeRecalculated = false;
|
||||
}
|
||||
|
||||
void Register()
|
||||
void Register() OVERRIDE
|
||||
{
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_oculus_dream_funnel_AuraScript::HandleEffectCalcAmount, EFFECT_0, SPELL_AURA_PERIODIC_HEAL);
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_oculus_dream_funnel_AuraScript::HandleEffectCalcAmount, EFFECT_2, SPELL_AURA_PERIODIC_DAMAGE);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const
|
||||
AuraScript* GetAuraScript() const OVERRIDE
|
||||
{
|
||||
return new spell_oculus_dream_funnel_AuraScript();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user