fix: power stone doesn't send a value
This commit is contained in:
parent
910fd5cc3b
commit
7b1c644a08
@ -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 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user