Fix EMP damage not being actually dealt

This commit is contained in:
DBotThePony 2023-04-13 19:23:06 +07:00
parent 50b19c3a31
commit ff4c24d5f6
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -115,6 +115,7 @@ class EnergySwordItem : Item(Properties().stacksTo(1).rarity(Rarity.RARE)), Vani
if (attacker is Player && attacker.isCreative) {
victim.matteryPlayer?.let {
if (it.isAndroid) {
victim.invulnerableTime = 0
victim.hurt(EMPDamageSource(attacker), 8f)
}
}