mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge branch 'newBranch' into 'master'
[Mobile] Don't stack token creature with different PT See merge request core-developers/forge!3281
This commit is contained in:
@@ -253,6 +253,13 @@ public class CardView extends GameEntityView {
|
||||
}
|
||||
return counters.equals(otherCard.getCounters());
|
||||
}
|
||||
public boolean hasSamePT(CardView otherCard) {
|
||||
if (getCurrentState().getPower() != otherCard.getCurrentState().getPower())
|
||||
return false;
|
||||
if (getCurrentState().getToughness() != otherCard.getCurrentState().getToughness())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
void updateCounters(Card c) {
|
||||
set(TrackableProperty.Counters, c.getCounters());
|
||||
updateLethalDamage(c);
|
||||
|
||||
Reference in New Issue
Block a user