fix: remove last use of value field in use stone requests
This commit is contained in:
parent
d2942341e2
commit
12f4d7592b
@ -524,7 +524,7 @@ public class GameLogic {
|
|||||||
|
|
||||||
if(targetEntity instanceof Character) {
|
if(targetEntity instanceof Character) {
|
||||||
Character target = (Character)targetEntity;
|
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());
|
List<StoneType> stones = Arrays.asList(target.inventory.getStonesAsArray());
|
||||||
Collections.shuffle(stones); // required by documents
|
Collections.shuffle(stones); // required by documents
|
||||||
@ -545,7 +545,7 @@ public class GameLogic {
|
|||||||
}
|
}
|
||||||
}else if(targetEntity instanceof Rock) {
|
}else if(targetEntity instanceof Rock) {
|
||||||
Rock target = (Rock)targetEntity;
|
Rock target = (Rock)targetEntity;
|
||||||
if(target.getHp() <= data.value) {
|
if(target.getHp() <= state.partyConfig.mindStoneDMG) {
|
||||||
result.add(new EventBuilder(EventType.DestroyedEntityEvent)
|
result.add(new EventBuilder(EventType.DestroyedEntityEvent)
|
||||||
.withTargetField(data.targetField)
|
.withTargetField(data.targetField)
|
||||||
.withTargetEntity(target.id)
|
.withTargetEntity(target.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user