mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38: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);
|
source.addDealtDamageToThisTurn(this, damageIn);
|
||||||
if (isCombat) {
|
if (isCombat) {
|
||||||
game.getCombat().addDealtDamageTo(source, this);
|
game.getCombat().addDealtDamageTo(source, this);
|
||||||
}
|
} else if (source.hasKeyword("Lifelink")) {
|
||||||
|
// LifeLink not for Combat Damage at this place
|
||||||
// Both combat and non-combat lifelink is handled here
|
|
||||||
if (source.hasKeyword("Lifelink")) {
|
|
||||||
source.getController().gainLife(damageIn, source);
|
source.getController().gainLife(damageIn, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -767,6 +767,10 @@ public class Combat {
|
|||||||
for (final Card damageSource : dealtDamageTo.keySet()) {
|
for (final Card damageSource : dealtDamageTo.keySet()) {
|
||||||
final HashMap<String, Object> runParams = new HashMap<String, Object>();
|
final HashMap<String, Object> runParams = new HashMap<String, Object>();
|
||||||
int dealtDamage = damageDealtThisCombat.containsKey(damageSource) ? damageDealtThisCombat.get(damageSource) : 0;
|
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("DamageSource", damageSource);
|
||||||
runParams.put("DamageTargets", dealtDamageTo.get(damageSource));
|
runParams.put("DamageTargets", dealtDamageTo.get(damageSource));
|
||||||
runParams.put("DamageAmount", dealtDamage);
|
runParams.put("DamageAmount", dealtDamage);
|
||||||
|
|||||||
@@ -560,10 +560,8 @@ public class Player extends GameEntity implements Comparable<Player> {
|
|||||||
for (final String type : source.getType()) {
|
for (final String type : source.getType()) {
|
||||||
source.getController().addProwlType(type);
|
source.getController().addProwlType(type);
|
||||||
}
|
}
|
||||||
}
|
} else if (source.hasKeyword("Lifelink")) {
|
||||||
|
// LifeLink not for Combat Damage at this place
|
||||||
// Both combat and non-combat lifelink is handled here
|
|
||||||
if (source.hasKeyword("Lifelink")) {
|
|
||||||
source.getController().gainLife(amount, source);
|
source.getController().gainLife(amount, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user