- Reverting the lifelink change for now, better solution needed.

This commit is contained in:
Agetian
2016-12-20 10:18:06 +00:00
parent 3fc05d6940
commit ae608246d1
3 changed files with 8 additions and 8 deletions

View File

@@ -6140,10 +6140,8 @@ public class Card extends GameEntity implements Comparable<Card> {
source.addDealtDamageToThisTurn(this, damageIn);
if (isCombat) {
game.getCombat().addDealtDamageTo(source, this);
}
// Both combat and non-combat lifelink is handled here
if (source.hasKeyword("Lifelink")) {
} else if (source.hasKeyword("Lifelink")) {
// LifeLink not for Combat Damage at this place
source.getController().gainLife(damageIn, source);
}

View File

@@ -767,6 +767,10 @@ public class Combat {
for (final Card damageSource : dealtDamageTo.keySet()) {
final HashMap<String, Object> runParams = new HashMap<String, Object>();
int dealtDamage = damageDealtThisCombat.containsKey(damageSource) ? damageDealtThisCombat.get(damageSource) : 0;
// LifeLink for Combat Damage at this place
if (dealtDamage > 0 && damageSource.hasKeyword("Lifelink")) {
damageSource.getController().gainLife(dealtDamage, damageSource);
}
runParams.put("DamageSource", damageSource);
runParams.put("DamageTargets", dealtDamageTo.get(damageSource));
runParams.put("DamageAmount", dealtDamage);

View File

@@ -560,10 +560,8 @@ public class Player extends GameEntity implements Comparable<Player> {
for (final String type : source.getType()) {
source.getController().addProwlType(type);
}
}
// Both combat and non-combat lifelink is handled here
if (source.hasKeyword("Lifelink")) {
} else if (source.hasKeyword("Lifelink")) {
// LifeLink not for Combat Damage at this place
source.getController().gainLife(amount, source);
}