mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-27 18:52:27 +00:00
Fix some lua calls/variables in legacy_combat.lua
This commit is contained in:
parent
0a8b21d4ab
commit
d0e612b5ff
@ -42,6 +42,7 @@ WeaponSkillFalloff = RuleR.Get(Rule.WeaponSkillFalloff);
|
|||||||
ArcheryHitPenalty = RuleR.Get(Rule.ArcheryHitPenalty);
|
ArcheryHitPenalty = RuleR.Get(Rule.ArcheryHitPenalty);
|
||||||
UseOldDamageIntervalRules = RuleB.Get(Rule.UseOldDamageIntervalRules);
|
UseOldDamageIntervalRules = RuleB.Get(Rule.UseOldDamageIntervalRules);
|
||||||
|
|
||||||
|
|
||||||
function MeleeMitigation(e)
|
function MeleeMitigation(e)
|
||||||
e.IgnoreDefault = true;
|
e.IgnoreDefault = true;
|
||||||
|
|
||||||
@ -376,7 +377,7 @@ function TryPetCriticalHit(self, defender, hit)
|
|||||||
|
|
||||||
if(Random.RollReal(critChance)) then
|
if(Random.RollReal(critChance)) then
|
||||||
local entity_list = eq.get_entity_list();
|
local entity_list = eq.get_entity_list();
|
||||||
critMod = critMod + GetCritDmgMob(self, hit.skill) * 2;
|
critMod = critMod + GetCritDmgMod(self, hit.skill) * 2;
|
||||||
hit.damage_done = (hit.damage_done * critMod) / 100;
|
hit.damage_done = (hit.damage_done * critMod) / 100;
|
||||||
entity_list:FilteredMessageClose(this, false, 200,
|
entity_list:FilteredMessageClose(this, false, 200,
|
||||||
MT.CritMelee, Filter.MeleeCrits, string.format('%s scores a critical hit! (%d)',
|
MT.CritMelee, Filter.MeleeCrits, string.format('%s scores a critical hit! (%d)',
|
||||||
@ -719,7 +720,7 @@ function GetDamageTable(attacker, skill)
|
|||||||
|
|
||||||
if attacker:GetClass() == 7 then
|
if attacker:GetClass() == 7 then
|
||||||
local monkDamageTableBonus = 20;
|
local monkDamageTableBonus = 20;
|
||||||
return (dmg_table[GetLevel() - 50] * (100 + monkDamageTableBonus) / 100);
|
return (dmg_table[attacker:GetLevel() - 50] * (100 + monkDamageTableBonus) / 100);
|
||||||
else
|
else
|
||||||
return dmg_table[attacker:GetLevel() - 50];
|
return dmg_table[attacker:GetLevel() - 50];
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user