mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Moved the holdCheckingStaticAbilities methods closer to the code that checks for static abilities.
This commit is contained in:
@@ -589,6 +589,15 @@ public class GameAction {
|
||||
}
|
||||
}
|
||||
|
||||
// Temporarily disable (if mode = true) actively checking static abilities.
|
||||
private void setHoldCheckingStaticAbilities(boolean mode) {
|
||||
holdCheckingStaticAbilities = mode;
|
||||
}
|
||||
|
||||
private boolean isCheckingStaticAbilitiesOnHold() {
|
||||
return holdCheckingStaticAbilities;
|
||||
}
|
||||
|
||||
public final void checkStaticAbilities() {
|
||||
checkStaticAbilities(true, new CardCollection());
|
||||
}
|
||||
@@ -1664,11 +1673,4 @@ public class GameAction {
|
||||
}
|
||||
}
|
||||
|
||||
// Temporarily disable (if mode = true) actively checking static abilities.
|
||||
private void setHoldCheckingStaticAbilities(boolean mode) {
|
||||
holdCheckingStaticAbilities = mode;
|
||||
}
|
||||
private boolean isCheckingStaticAbilitiesOnHold() {
|
||||
return holdCheckingStaticAbilities;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user