delete unused LifeLink function. Hopefully I can finish digging into why creature on creature lifelink effects are not working. There has been a lot of noise on the forums about this.

This commit is contained in:
jendave
2011-08-06 10:55:03 +00:00
parent 97b4d9d5fe
commit 54bcf35167

View File

@@ -5178,24 +5178,17 @@ public class GameActionUtil {
if(c.getController().equals(AllZone.HumanPlayer)) {
if(showLandfallDialog(c)) AllZone.Stack.add(ability);
} else if(c.getController().equals(AllZone.ComputerPlayer)) {
CardList Hexmages = new CardList();
PlayerZone zone = AllZone.getZone(Constant.Zone.Play, AllZone.HumanPlayer);
if(zone != null) {
Hexmages.addAll(zone.getCards());
Hexmages = Hexmages.getName("Vampire Hexmage");
int clife = AllZone.ComputerPlayer.getLife();
if(compVessel.getCounters(Counters.CHARGE) > clife && (Hexmages.size() == 0)) AllZone.Stack.add(ability);
}
CardList Hexmages = new CardList();
PlayerZone zone = AllZone.getZone(Constant.Zone.Play, AllZone.HumanPlayer);
if(zone != null) {
Hexmages.addAll(zone.getCards());
Hexmages = Hexmages.getName("Vampire Hexmage");
int clife = AllZone.ComputerPlayer.getLife();
if(compVessel.getCounters(Counters.CHARGE) > clife && (Hexmages.size() == 0)) AllZone.Stack.add(ability);
}
}
}//landfall_Eternity_Vessel
public static void executeLifeLinkEffects(Card c) {
int pwr = c.getNetAttack();
if(CombatUtil.isDoranInPlay()) pwr = c.getNetDefense();
executeLifeLinkEffects(c, pwr);
}
public static void executeLifeLinkEffects(final Card c, int n) {
final Player player = c.getController();