fix: Fixes damage types when wearing quivers (#747)

This commit is contained in:
SpeedyDevil 2021-08-29 19:04:59 +02:00 committed by GitHub
parent 251acec102
commit 28faf4346f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{