mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Reverting the lifelink change for now, better solution needed.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user