mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
implemented Afflict + simple HOU cards
This commit is contained in:
parent
ae640ee0b7
commit
5bcaafd738
7 changed files with 213 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import mage.abilities.common.BecomesBlockedTriggeredAbility;
|
||||
import mage.abilities.effects.common.LoseLifeDefendingPlayerEffect;
|
||||
|
||||
public class AfflictAbility extends BecomesBlockedTriggeredAbility {
|
||||
|
||||
private int lifeLoss;
|
||||
|
||||
@Override
|
||||
public AfflictAbility copy() {
|
||||
return new AfflictAbility(this);
|
||||
}
|
||||
|
||||
public AfflictAbility(int amount){
|
||||
super(new LoseLifeDefendingPlayerEffect(amount, true), false);
|
||||
}
|
||||
|
||||
public AfflictAbility(final AfflictAbility afflictAbility){
|
||||
super(afflictAbility);
|
||||
lifeLoss = afflictAbility.lifeLoss;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue