fix: Fixes damage from AR (#1134)

This commit is contained in:
Kamron Batman 2022-07-28 17:39:21 -07:00 • committed by GitHub
parent ce5db11273
commit c4b814cc07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 25 deletions

View file

@ -1963,10 +1963,11 @@ namespace Server.Items
}
}
var isAcidMonster = m_MaxHits > 0 && MaxRange <= 1 && defender is Slime or AcidElemental;
// Stratics says 50% chance, seems more like 4%..
if (m_MaxHits > 0 && MaxRange <= 1 && defender is Slime or AcidElemental |Utility.RandomDouble() < .04)
if (isAcidMonster || Utility.RandomDouble() < 0.04)
{
if (MaxRange <= 1 && defender is Slime or AcidElemental)
if (isAcidMonster)
{
attacker.LocalOverheadMessage(MessageType.Regular, 0x3B2, 500263); // *Acid blood scars your weapon!*
}