fixed tall decay targeting too many faces
This commit is contained in:
parent
ac960c53cd
commit
a1b1b5a8b9
1 changed files with 5 additions and 1 deletions
|
@ -22,8 +22,12 @@ public class TallDecay extends Decay {
|
||||||
|
|
||||||
if (die.getFaceValue() < highestValue) continue;
|
if (die.getFaceValue() < highestValue) continue;
|
||||||
|
|
||||||
|
if (die.getFaceValue() > highestValue) {
|
||||||
|
highestValue = die.getFaceValue();
|
||||||
|
targets.clear();
|
||||||
|
}
|
||||||
|
|
||||||
targets.add(die);
|
targets.add(die);
|
||||||
highestValue = die.getFaceValue();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return targets;
|
return targets;
|
||||||
|
|
Loading…
Add table
Reference in a new issue