forked from 2009Scape/Server
Fixed inaccurate dragon fire damage when shielded
This commit is contained in:
parent
6eed461162
commit
47d9c6c4b1
1 changed files with 2 additions and 2 deletions
|
|
@ -2614,9 +2614,9 @@ fun calculateDragonfireMaxHit(entity: Entity, maxDamage: Int, wyvern: Boolean =
|
|||
effectiveDamage -= 0.6 * maxDamage
|
||||
else {
|
||||
if (hasShield)
|
||||
effectiveDamage -= 0.8 * maxDamage
|
||||
effectiveDamage -= 0.9 * maxDamage
|
||||
if (hasPotion)
|
||||
effectiveDamage -= 0.2 * maxDamage
|
||||
effectiveDamage -= 0.1 * maxDamage
|
||||
}
|
||||
|
||||
return Math.max(unprotectableDamage, effectiveDamage.toInt())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue