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