mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
minor fixes in Player.addDamage
This commit is contained in:
@@ -142,7 +142,7 @@ public abstract class Player extends MyObservable{
|
|||||||
damageToDo = 0;
|
damageToDo = 0;
|
||||||
|
|
||||||
if( source.getKeyword().contains("Infect") ) {
|
if( source.getKeyword().contains("Infect") ) {
|
||||||
addPoisonCounters(damage);
|
addPoisonCounters(damageToDo);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(PlayerUtil.worshipFlag(this) && life <= damageToDo) {
|
if(PlayerUtil.worshipFlag(this) && life <= damageToDo) {
|
||||||
@@ -151,7 +151,7 @@ public abstract class Player extends MyObservable{
|
|||||||
subtractLife(damageToDo, source);
|
subtractLife(damageToDo, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(source.getKeyword().contains("Lifelink")) GameActionUtil.executeLifeLinkEffects(source, damage);
|
if(source.getKeyword().contains("Lifelink")) GameActionUtil.executeLifeLinkEffects(source, damageToDo);
|
||||||
|
|
||||||
CardList cl = CardFactoryUtil.getAurasEnchanting(source, "Guilty Conscience");
|
CardList cl = CardFactoryUtil.getAurasEnchanting(source, "Guilty Conscience");
|
||||||
for(Card c:cl) {
|
for(Card c:cl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user