fix: Fixes damage types when wearing quivers (#747)
This commit is contained in:
parent
251acec102
commit
28faf4346f
1 changed files with 11 additions and 13 deletions
|
|
@ -1838,23 +1838,21 @@ namespace Server.Items
|
|||
AddBlood(attacker, defender, damage);
|
||||
int phys, fire, cold, pois, nrgy, chaos, direct;
|
||||
|
||||
GetDamageTypes(
|
||||
attacker,
|
||||
out phys,
|
||||
out fire,
|
||||
out cold,
|
||||
out pois,
|
||||
out nrgy,
|
||||
out chaos,
|
||||
out direct
|
||||
);
|
||||
|
||||
if (Core.ML && this is BaseRanged && attacker.FindItemOnLayer(Layer.Cloak) is BaseQuiver quiver)
|
||||
{
|
||||
quiver.AlterBowDamage(out phys, out fire, out cold, out pois, out nrgy, out chaos, out direct);
|
||||
}
|
||||
else
|
||||
{
|
||||
GetDamageTypes(
|
||||
attacker,
|
||||
out phys,
|
||||
out fire,
|
||||
out cold,
|
||||
out pois,
|
||||
out nrgy,
|
||||
out chaos,
|
||||
out direct
|
||||
);
|
||||
}
|
||||
|
||||
if (Consecrated)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue