fix: remove last use of value field in use stone requests

This commit is contained in:
punchready 2021-08-10 20:34:10 +02:00
parent d2942341e2
commit 12f4d7592b
1 changed files with 2 additions and 2 deletions

View File

@ -524,7 +524,7 @@ public class GameLogic {
if(targetEntity instanceof Character) {
Character target = (Character)targetEntity;
if(target.hp.getValue() <= data.value) {
if(target.hp.getValue() <= state.partyConfig.mindStoneDMG) {
List<StoneType> stones = Arrays.asList(target.inventory.getStonesAsArray());
Collections.shuffle(stones); // required by documents
@ -545,7 +545,7 @@ public class GameLogic {
}
}else if(targetEntity instanceof Rock) {
Rock target = (Rock)targetEntity;
if(target.getHp() <= data.value) {
if(target.getHp() <= state.partyConfig.mindStoneDMG) {
result.add(new EventBuilder(EventType.DestroyedEntityEvent)
.withTargetField(data.targetField)
.withTargetEntity(target.id)