mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Revert "Merge pull request #1101 from KinglyKrab/custom"
This reverts commit43108acae1, reversing changes made todaa1db65b9.
This commit is contained in:
@@ -160,14 +160,6 @@ int32 Mob::GetActSpellDamage(uint16 spell_id, int32 value, Mob* target) {
|
||||
if (IsNPC() && CastToNPC()->GetSpellScale())
|
||||
value = int(static_cast<float>(value) * CastToNPC()->GetSpellScale() / 100.0f);
|
||||
|
||||
if (RuleB(Combat, CustomScaling) && IsClient()) {
|
||||
int scale_value = itembonuses.INT;
|
||||
float spell_damage_scale = RuleR(Combat, CustomScalingSpellDamage);
|
||||
if (scale_value > int(spell_damage_scale)) {
|
||||
value = int(static_cast<float>(value) * static_cast<float>(scale_value / spell_damage_scale));
|
||||
}
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -237,14 +229,6 @@ int32 Mob::GetActDoTDamage(uint16 spell_id, int32 value, Mob* target) {
|
||||
if (IsNPC() && CastToNPC()->GetSpellScale())
|
||||
value = int(static_cast<float>(value) * CastToNPC()->GetSpellScale() / 100.0f);
|
||||
|
||||
if (RuleB(Combat, CustomScaling) && IsClient()) {
|
||||
int scale_value = itembonuses.INT;
|
||||
float spell_damage_scale = RuleR(Combat, CustomScalingSpellDamage);
|
||||
if (scale_value > spell_damage_scale) {
|
||||
value = int(static_cast<float>(value) * static_cast<float>(scale_value / spell_damage_scale));
|
||||
}
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -332,14 +316,6 @@ int32 Mob::GetActSpellHealing(uint16 spell_id, int32 value, Mob* target) {
|
||||
MessageString(Chat::SpellCrit, YOU_CRIT_HEAL, itoa(value));
|
||||
}
|
||||
|
||||
if (RuleB(Combat, CustomScaling) && IsClient()) {
|
||||
int scale_value = itembonuses.WIS;
|
||||
float spell_damage_scale = RuleR(Combat, CustomScalingSpellDamage);
|
||||
if (scale_value > int(spell_damage_scale)) {
|
||||
value = int(static_cast<float>(value) * static_cast<float>(scale_value / spell_damage_scale));
|
||||
}
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -360,14 +336,6 @@ int32 Mob::GetActSpellHealing(uint16 spell_id, int32 value, Mob* target) {
|
||||
if (IsNPC() && CastToNPC()->GetHealScale())
|
||||
value = int(static_cast<float>(value) * CastToNPC()->GetHealScale() / 100.0f);
|
||||
|
||||
if (RuleB(Combat, CustomScaling) && IsClient()) {
|
||||
int scale_value = itembonuses.WIS;
|
||||
float spell_healing_scale = RuleR(Combat, CustomScalingSpellHealing);
|
||||
if (scale_value > int(spell_healing_scale)) {
|
||||
value = int(static_cast<float>(value) * static_cast<float>(scale_value / spell_healing_scale));
|
||||
}
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user