fix: power stone doesn't send a value

This commit is contained in:
punchready 2021-07-25 23:14:09 +02:00
parent 910fd5cc3b
commit 7b1c644a08

View File

@ -146,10 +146,6 @@ public class GameLogic {
requireAlive(target);
requireOppositeTeam(origin, target);
if(origin.meleeDamage * 2 != data.value) {
throw new InvalidRequestException("Invalid power stone damage");
}
}
case TimeStone -> {
// "👍 i approve" - the server
@ -472,7 +468,7 @@ public class GameLogic {
result.add(new EventBuilder(EventType.TakenDamageEvent)
.withTargetEntity(data.targetEntity)
.withTargetField(data.targetField)
.withAmount(data.value)
.withAmount(origin.meleeDamage * 2)
.buildEntityEvent());
}
case TimeStone -> {