mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Fix crash when starting game
This commit is contained in:
@@ -762,7 +762,7 @@ public class CardView extends GameEntityView {
|
|||||||
return get(TrackableProperty.Power);
|
return get(TrackableProperty.Power);
|
||||||
}
|
}
|
||||||
void updatePower(Card c) {
|
void updatePower(Card c) {
|
||||||
if (c.getCurrentState().getView() == this) {
|
if (c.getCurrentState().getView() == this || !c.hasAlternateState()) {
|
||||||
set(TrackableProperty.Power, c.getNetPower());
|
set(TrackableProperty.Power, c.getNetPower());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -782,7 +782,7 @@ public class CardView extends GameEntityView {
|
|||||||
return get(TrackableProperty.Toughness);
|
return get(TrackableProperty.Toughness);
|
||||||
}
|
}
|
||||||
void updateToughness(Card c) {
|
void updateToughness(Card c) {
|
||||||
if (c.getCurrentState().getView() == this) {
|
if (c.getCurrentState().getView() == this || !c.hasAlternateState()) {
|
||||||
set(TrackableProperty.Toughness, c.getNetToughness());
|
set(TrackableProperty.Toughness, c.getNetToughness());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user