mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Merge pull request #7968 from Card-Forge/kevlahnota-fix-Rug-of-Smothering
Fix Crash for Rug of Smothering
This commit is contained in:
@@ -658,7 +658,7 @@ public class AbilityUtils {
|
||||
val = playerXCount(getDefinedPlayers(card, key, sa), calcX[1], card, ability);
|
||||
}
|
||||
else if (calcX[0].startsWith("TriggeredPlayer") || calcX[0].startsWith("TriggeredTarget")
|
||||
|| calcX[0].startsWith("TriggeredDefendingPlayer")) {
|
||||
|| calcX[0].startsWith("TriggeredDefendingPlayer") || calcX[0].startsWith("TriggeredActivator")) {
|
||||
final SpellAbility root = sa.getRootAbility();
|
||||
Object o = root.getTriggeringObject(AbilityKey.fromString(calcX[0].substring(9)));
|
||||
val = o instanceof Player ? playerXProperty((Player) o, calcX[1], card, ability) : 0;
|
||||
|
||||
Reference in New Issue
Block a user