mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed a possible bug with "UntilHostLeavesPlay" in AF Animate.
This commit is contained in:
@@ -477,6 +477,12 @@ public final class AbilityFactoryAnimate {
|
|||||||
final Map<String, String> svars = host.getSVars();
|
final Map<String, String> svars = host.getSVars();
|
||||||
long timest = -1;
|
long timest = -1;
|
||||||
|
|
||||||
|
//if host is not on the battlefield don't apply
|
||||||
|
if (params.containsKey("UntilHostLeavesPlay")
|
||||||
|
&& !AllZoneUtil.isCardInPlay(sa.getSourceCard())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// AF specific params
|
// AF specific params
|
||||||
int power = -1;
|
int power = -1;
|
||||||
if (params.containsKey("Power")) {
|
if (params.containsKey("Power")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user