mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Attempting to fix compile errors [please review and update if necessary].
This commit is contained in:
@@ -62,8 +62,9 @@ public class CostDamage extends CostPart {
|
|||||||
public boolean payAsDecided(Player payer, PaymentDecision decision, SpellAbility sa) {
|
public boolean payAsDecided(Player payer, PaymentDecision decision, SpellAbility sa) {
|
||||||
final Card source = sa.getHostCard();
|
final Card source = sa.getHostCard();
|
||||||
CardDamageMap damageMap = new CardDamageMap();
|
CardDamageMap damageMap = new CardDamageMap();
|
||||||
|
CardDamageMap preventMap = new CardDamageMap();
|
||||||
|
|
||||||
payer.addDamage(decision.c, source, damageMap);
|
payer.addDamage(decision.c, source, damageMap, preventMap);
|
||||||
|
|
||||||
damageMap.dealLifelinkDamage();
|
damageMap.dealLifelinkDamage();
|
||||||
|
|
||||||
|
|||||||
@@ -388,8 +388,9 @@ public class HumanPlay {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
CardDamageMap damageMap = new CardDamageMap();
|
CardDamageMap damageMap = new CardDamageMap();
|
||||||
|
CardDamageMap preventMap = new CardDamageMap();
|
||||||
|
|
||||||
p.addDamage(amount, source, damageMap);
|
p.addDamage(amount, source, damageMap, preventMap);
|
||||||
|
|
||||||
damageMap.dealLifelinkDamage();
|
damageMap.dealLifelinkDamage();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user