Last Updated: December 21, 2018

Deck Summary

Deck Cost: 2,400
0 0 3 0 0 0 0 0
1 2 3 4 5 6 7 8+
Followers: 0
Spells: 0
Amulets: 3

Mulligan/Draw Simulator

Deck Overview

import java.awt.*;
import java.awt.event.*;

import javax.swing.*;
import javax.swing.event.*;

import java.util.Timer;
import java.util.TimerTask;

/**
*
* Beschreibung
*
* @version 1.0 vom 28.11.2018
* @author
*/
public class Main extends JFrame {
// Anfang Attribute
private JLabel jaclass = new JLabel();
private JButton jaknight = new JButton();
private JButton japriest = new JButton();
private JButton jaassasin = new JButton();
private JButton jatank = new JButton();
private JButton jamage = new JButton();
private JButton jagunmage = new JButton();
private JButton jagunner = new JButton();
private JLabel jaskill = new JLabel();
private JButton jaskilld1 = new JButton();
private JButton jaskilld3 = new JButton();
private JButton jaskilld2 = new JButton();
private JLabel jault = new JLabel();
private JButton jault1 = new JButton();
private JButton jault2 = new JButton();
private JLabel janame = new JLabel();
private JTextField janameselect = new JTextField();
private JButton jStart = new JButton();
private JTextArea jTextArea1 = new JTextArea("");
private JScrollPane jTextArea1ScrollPane = new JScrollPane(jTextArea1);
private JButton aattack = new JButton();
private JButton aaskill = new JButton();
private JButton abskill = new JButton();
private JButton acskill = new JButton();
private JButton adskill = new JButton();
private JButton jaultskill = new JButton();
private JTextArea jTextArea2 = new JTextArea("");
private JScrollPane jTextArea2ScrollPane = new JScrollPane(jTextArea2);
private JTextArea jTextArea3 = new JTextArea("");
private JScrollPane jTextArea3ScrollPane = new JScrollPane(jTextArea3);
private JButton jareaper = new JButton();

private JLabel jshowahp = new JLabel();
private JLabel jshowamp = new JLabel();
private JLabel jshowault = new JLabel();
private JButton aattack1 = new JButton();
private JButton aaskill1 = new JButton();
private JButton abskill1 = new JButton();
private JButton acskill1 = new JButton();
private JButton adskill1 = new JButton();
private JButton jaultskill1 = new JButton();
private JLabel janame1 = new JLabel();
private JLabel jshowault1 = new JLabel();
private JLabel jshowamp1 = new JLabel();
private JLabel jshowahp1 = new JLabel();
private JLabel jafinalclass = new JLabel();
private JLabel jafinalclass1 = new JLabel();
// Ende Attribute
public Main(String title) {
// Frame-Initialisierung
super(title);
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);

int frameWidth = 479;
int frameHeight = 660;
setSize(frameWidth, frameHeight);

Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int x = (d.width - getSize().width) / 2;
int y = (d.height - getSize().height) / 2;
setLocation(x, y);
setResizable(false);

Container cp = getContentPane();
cp.setLayout(null);
// Anfang Komponenten
jaclass.setBounds(0, 88, 121, 25);
jaclass.setText("Class:");
jaclass.setBackground(new Color(0xEEEEEE));
jaclass.setOpaque(true);
cp.add(jaclass);
jaknight.setBounds(0, 120, 121, 25);
jaknight.setText("Knight");
jaknight.setMargin(new Insets(2, 2, 2, 2));
jaknight.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jaknight_ActionPerformed(evt);
}
});
cp.add(jaknight);
japriest.setBounds(0, 152, 121, 25);
japriest.setText("Priest");
japriest.setMargin(new Insets(2, 2, 2, 2));
japriest.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
japriest_ActionPerformed(evt);
}
});
cp.add(japriest);
jaassasin.setBounds(0, 184, 121, 25);
jaassasin.setText("Assassin");
jaassasin.setMargin(new Insets(2, 2, 2, 2));
jaassasin.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jaassasin_ActionPerformed(evt);
}
});
cp.add(jaassasin);
jatank.setBounds(0, 216, 121, 25);
jatank.setText("Tank");
jatank.setMargin(new Insets(2, 2, 2, 2));
jatank.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jatank_ActionPerformed(evt);
}
});
cp.add(jatank);
jamage.setBounds(0, 248, 121, 25);
jamage.setText("Mage");
jamage.setMargin(new Insets(2, 2, 2, 2));
jamage.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jamage_ActionPerformed(evt);
}
});
cp.add(jamage);
jagunmage.setBounds(0, 312, 121, 25);
jagunmage.setText("Gunmage");
jagunmage.setMargin(new Insets(2, 2, 2, 2));
jagunmage.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jagunmage_ActionPerformed(evt);
}
});
cp.add(jagunmage);
jagunner.setBounds(0, 280, 121, 25);
jagunner.setText("Gunner");
jagunner.setMargin(new Insets(2, 2, 2, 2));
jagunner.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jagunner_ActionPerformed(evt);
}
});
cp.add(jagunner);
jaskill.setBounds(0, 400, 121, 25);
jaskill.setText("D-Skills");
jaskill.setBackground(new Color(0xEEEEEE));
jaskill.setOpaque(true);
cp.add(jaskill);
jaskilld1.setBounds(-8, 432, 129, 25);
jaskilld1.setText("Skill D-1");
jaskilld1.setMargin(new Insets(2, 2, 2, 2));
jaskilld1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jaskilld1_ActionPerformed(evt);
}
});
cp.add(jaskilld1);
jaskilld3.setBounds(-8, 496, 129, 25);
jaskilld3.setText("Skill D-3");
jaskilld3.setMargin(new Insets(2, 2, 2, 2));
jaskilld3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jaskilld3_ActionPerformed(evt);
}
});
cp.add(jaskilld3);
jaskilld2.setBounds(-8, 464, 129, 25);
jaskilld2.setText("Skill D-2");
jaskilld2.setMargin(new Insets(2, 2, 2, 2));
jaskilld2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jaskilld2_ActionPerformed(evt);
}
});
cp.add(jaskilld2);
jault.setBounds(0, 536, 121, 25);
jault.setText("Ultimate");
jault.setBackground(new Color(0xEEEEEE));
jault.setOpaque(true);
cp.add(jault);
jault1.setBounds(0, 568, 121, 25);
jault1.setText("Ultimate 1");
jault1.setMargin(new Insets(2, 2, 2, 2));
jault1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jault1_ActionPerformed(evt);
}
});
cp.add(jault1);
jault2.setBounds(0, 600, 121, 25);
jault2.setText("Ultimate 2");
jault2.setMargin(new Insets(2, 2, 2, 2));
jault2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jault2_ActionPerformed(evt);
}
});
cp.add(jault2);
janame.setBounds(0, 0, 121, 25);
janame.setText("Player A");
janame.setBackground(new Color(0xEEEEEE));
janame.setOpaque(true);
cp.add(janame);
janameselect.setBounds(0, 32, 121, 25);
janameselect.setText("Your Name");
janameselect.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent evt) {
janameselect_MouseClicked(evt);
}
});
cp.add(janameselect);
jStart.setBounds(352, 32, 121, 57);
jStart.setText("Start");
jStart.setMargin(new Insets(2, 2, 2, 2));
jStart.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jStart_ActionPerformed(evt);
}
});
jStart.setBackground(new Color(0xEEEEEE));
cp.add(jStart);
jTextArea1ScrollPane.setBounds(128, 88, 217, 281);
cp.add(jTextArea1ScrollPane);
aattack.setBounds(160, 104, 121, 25);
aattack.setText("Attack");
aattack.setMargin(new Insets(2, 2, 2, 2));
aattack.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
aattack_ActionPerformed(evt);
}
});
cp.add(aattack);
aaskill.setBounds(160, 128, 121, 25);
aaskill.setText("A-Skill");
aaskill.setMargin(new Insets(2, 2, 2, 2));
aaskill.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
aaskill_ActionPerformed(evt);
}
});
cp.add(aaskill);
abskill.setBounds(160, 152, 121, 25);
abskill.setText("B-Skill");
abskill.setMargin(new Insets(2, 2, 2, 2));
abskill.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
abskill_ActionPerformed(evt);
}
});
cp.add(abskill);
acskill.setBounds(160, 176, 121, 25);
acskill.setText("C-Skill");
acskill.setMargin(new Insets(2, 2, 2, 2));
acskill.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
acskill_ActionPerformed(evt);
}
});
cp.add(acskill);
adskill.setBounds(160, 200, 121, 25);
adskill.setText("D-Skill");
adskill.setMargin(new Insets(2, 2, 2, 2));
adskill.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
adskill_ActionPerformed(evt);
}
});
cp.add(adskill);
jaultskill.setBounds(160, 224, 121, 25);
jaultskill.setText("Ultimate");
jaultskill.setMargin(new Insets(2, 2, 2, 2));
jaultskill.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jaultskill_ActionPerformed(evt);
}
});
cp.add(jaultskill);
jTextArea2ScrollPane.setBounds(128, 400, 217, 121);
cp.add(jTextArea2ScrollPane);
jTextArea3ScrollPane.setBounds(128, 536, 217, 89);
cp.add(jTextArea3ScrollPane);
cp.setBackground(Color.BLACK);
jareaper.setBounds(0, 344, 121, 25);
jareaper.setText("Reaper");
jareaper.setMargin(new Insets(2, 2, 2, 2));
jareaper.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jareaper_ActionPerformed(evt);
}
});
cp.add(jareaper);
jshowahp.setBounds(128, 0, 99, 25);
jshowahp.setText("HP: ");
jshowahp.setBackground(Color.WHITE);
jshowahp.setOpaque(true);
cp.add(jshowahp);
jshowamp.setBounds(128, 24, 99, 25);
jshowamp.setText("MP: ");
jshowamp.setBackground(Color.WHITE);
jshowamp.setOpaque(true);
cp.add(jshowamp);
jshowault.setBounds(128, 48, 99, 25);
jshowault.setText("Ult:");
jshowault.setBackground(Color.WHITE);
jshowault.setOpaque(true);
cp.add(jshowault);
aattack1.setBounds(352, 64, 121, 25);
aattack1.setText("Attack");
aattack1.setMargin(new Insets(2, 2, 2, 2));
aattack1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
aattack1_ActionPerformed(evt);
}
});
cp.add(aattack1);
aaskill1.setBounds(352, 96, 121, 25);
aaskill1.setText("A-Skill");
aaskill1.setMargin(new Insets(2, 2, 2, 2));
aaskill1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
aaskill1_ActionPerformed(evt);
}
});
cp.add(aaskill1);
abskill1.setBounds(352, 128, 121, 25);
abskill1.setText("B-Skill");
abskill1.setMargin(new Insets(2, 2, 2, 2));
abskill1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
abskill1_ActionPerformed(evt);
}
});
cp.add(abskill1);
acskill1.setBounds(352, 160, 121, 25);
acskill1.setText("C-Skill");
acskill1.setMargin(new Insets(2, 2, 2, 2));
acskill1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
acskill1_ActionPerformed(evt);
}
});
cp.add(acskill1);
adskill1.setBounds(352, 192, 121, 25);
adskill1.setText("D-Skill");
adskill1.setMargin(new Insets(2, 2, 2, 2));
adskill1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
adskill1_ActionPerformed(evt);
}
});
cp.add(adskill1);
jaultskill1.setBounds(352, 224, 121, 25);
jaultskill1.setText("Ultimate");
jaultskill1.setMargin(new Insets(2, 2, 2, 2));
jaultskill1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jaultskill1_ActionPerformed(evt);
}
});
cp.add(jaultskill1);
janame1.setBounds(352, 0, 121, 25);
janame1.setText("Player B");
janame1.setBackground(new Color(0xEEEEEE));
janame1.setOpaque(true);
cp.add(janame1);
jshowault1.setBounds(248, 48, 99, 25);
jshowault1.setText("Ult:");
jshowault1.setBackground(Color.WHITE);
jshowault1.setOpaque(true);
cp.add(jshowault1);
jshowamp1.setBounds(248, 24, 99, 25);
jshowamp1.setText("MP: ");
jshowamp1.setBackground(Color.WHITE);
jshowamp1.setOpaque(true);
cp.add(jshowamp1);
jshowahp1.setBounds(248, 0, 99, 25);
jshowahp1.setText("HP: ");
jshowahp1.setBackground(Color.WHITE);
jshowahp1.setOpaque(true);
cp.add(jshowahp1);
jafinalclass.setBounds(0, 32, 121, 25);
jafinalclass.setText("text");
jafinalclass.setBackground(new Color(0xEEEEEE));
jafinalclass.setOpaque(true);
cp.add(jafinalclass);
jafinalclass1.setBounds(352, 32, 121, 25);
jafinalclass1.setText("text");
jafinalclass1.setBackground(new Color(0xEEEEEE));
jafinalclass1.setOpaque(true);
cp.add(jafinalclass1);
// Ende Komponenten
setVisible(true);

aaskill.setVisible(false);
abskill.setVisible(false);
acskill.setVisible(false);
adskill.setVisible(false);
jaultskill.setVisible(false);
aattack.setVisible(false);

aaskill1.setVisible(false);
abskill1.setVisible(false);
acskill1.setVisible(false);
adskill1.setVisible(false);
jaultskill1.setVisible(false);
aattack1.setVisible(false);

jafinalclass.setVisible(false);
jafinalclass1.setVisible(false);

}

// Anfang Methoden
int i = 0; //initiating conditions

// Anfang Methoden
int connplayers1 = 0; //initiating conditions

// Anfang Methoden
int nplayers = 0; //initiating conditions

// Anfang Methoden
int nplayers2 = 0; //initiating conditions

int aclass = 0;
int bclass = 0;
int cclass = 0;
int dclass = 0;
int eclass = 0;
int fclass = 0;
int aclassx = 0;
int bclassx = 0;
int cclassx = 0;
int dclassx = 0;
int eclassx = 0;
int fclassx = 0;
int askill = 0;
int bskill = 0;
int cskill = 0;
int dskill = 0;
int eskill = 0;
int fskill = 0;
int askillx = 0;
int bskillx = 0;
int cskillx = 0;
int dskillx = 0;
int eskillx = 0;
int fskillx = 0;
int aultskill = 0;
int bultskill = 0;
int cultskill = 0;
int dultskill = 0;
int eultskill = 0;
int fultskill = 0;
int aultskillx = 0;
int bultskillx = 0;
int cultskillx = 0;
int dultskillx = 0;
int eultskillx = 0;
int fultskillx = 0;
double amhp = 0;
double ammp = 0;
double ahp = 0;
double amp = 0;
double ault = 0;
double aatk = 0;
double adef = 0;
double amag = 0;
double amdf = 0;
double aluck = 0;
double amaxammo = 0;
double aammo = 0;
double areload = 0;
double agunatk = 0;
double bmhp = 0;
double bmmp = 0;
double bhp = 0;
double bmp = 0;
double bult = 0;
double batk = 0;
double bdef = 0;
double bmag = 0;
double bmdf = 0;
double bluck = 0;
double bmaxammo = 0;
double bammo = 0;
double breload = 0;
double bgunatk = 0;
double cmhp = 0;
double cmmp = 0;
double chp = 0;
double cmp = 0;
double cult = 0;
double catk = 0;
double cdef = 0;
double cmag = 0;
double cmdf = 0;
double cluck = 0;
double cmaxammo = 0;
double cammo = 0;
double creload = 0;
double cgunatk = 0;
double dmhp = 0;
double dmmp = 0;
double dhp = 0;
double dmp = 0;
double dult = 0;
double datk = 0;
double ddef = 0;
double dmag = 0;
double dmdf = 0;
double dluck = 0;
double dmaxammo = 0;
double dammo = 0;
double dreload = 0;
double dgunatk = 0;
double emhp = 0;
double emmp = 0;
double ehp = 0;
double emp = 0;
double eult = 0;
double eatk = 0;
double edef = 0;
double emag = 0;
double emdf = 0;
double eluck = 0;
double emaxammo = 0;
double eammo = 0;
double ereload = 0;
double egunatk = 0;
double fmhp = 0;
double fmmp = 0;
double fhp = 0;
double fmp = 0;
double fult = 0;
double fatk = 0;
double fdef = 0;
double fmag = 0;
double fmdf = 0;
double fluck = 0;
double fmaxammo = 0;
double fammo = 0;
double freload = 0;
double fgunatk = 0;

int turn = 1;
int amove = 0;
int bmove = 0;
int amoves = 0;
int bmoves = 0;
double adamage = 0;
double apoi = 0;
double apoimult = 1;
double bdamage = 0;
double bpoi = 0;
double bpoidamage = 0;
double bpoimult = 1;
double bpoidamagemult = 1;
double adamagemult = 1;
double bdamagemult = 1;
double ahealmult = 1;
double bhealmult = 1;
double aheal = 0;
double bheal = 0;
double areg = 0, aregmult = 1;
double breg = 0, bregmult = 1;
int adodge = -1, aabsorber = -1, aantimagic = -1, areap = -1, atimes = -1;
int bdodge = -1, babsorber = -1, bantimagic = -1, breap = -1, btimes = -1;

//Move varriables t1 = attacker, t2 = target
double t1mhp = 0, t1hp = 0, t1mmp = 0, t1mp = 0, t1ult = 0;
double t1atk = 0, t1def = 0, t1mag = 0, t1mdf = 0, t1luck = 0;
double t1maxammo = 0, t1ammo = 0, t1reload = 0, t1gunatk = 0;
double t1damage = 0, t1damagemult, t1poidamage = 0;
double t1poidamagemult = 0, t1poi = 0, t1poimult = 0;
double t1healmult = 0, t1heal = 0, t1reg = 0, t1regmult = 0;
int t1dodge = -1, t1absorber = -1, t1antimagic = -1, t1reap = -1, t1times = -1;

double t2mhp = 0, t2hp = 0, t2mmp = 0, t2mp = 0, t2ult = 0;
double t2atk = 0, t2def = 0, t2mag = 0, t2mdf = 0, t2luck = 0;
double t2maxammo = 0, t2ammo = 0, t2reload = 0, t2gunatk = 0;
double t2damage = 0, t2damagemult, t2poidamage = 0;
double t2poidamagemult = 0, t2poi = 0, t2poimult = 0;
double t2healmult = 0, t2heal = 0, t2reg = 0, t2regmult = 0;
int t2dodge = -1, t2absorber = -1, t2antimagic = -1, t2reap = -1, t2times = -1;

//gay shit system gayness need for selection of gay players gaying arround
int playerID = 1;

//Goblins
double xmhp = 0;
double xmmp = 0;
double xhp = 0;
double xmp = 0;
double xult = 0;
double xatk = 0;
double xdef = 0;
double xmag = 0;
double xmdf = 0;
double xluck = 0;
double xmaxammo = 0;
double xammo = 0;
double xreload = 0;
double xgunatk = 0;

double ymhp = 0;
double ymmp = 0;
double yhp = 0;
double ymp = 0;
double yult = 0;
double yatk = 0;
double ydef = 0;
double ymag = 0;
double ymdf = 0;
double yluck = 0;
double ymaxammo = 0;
double yammo = 0;
double yreload = 0;
double ygunatk = 0;

double zmhp = 0;
double zmmp = 0;
double zhp = 0;
double zmp = 0;
double zult = 0;
double zatk = 0;
double zdef = 0;
double zmag = 0;
double zmdf = 0;
double zluck = 0;
double zmaxammo = 0;
double zammo = 0;
double zreload = 0;
double zgunatk = 0;

//their damage
double xdamage = 0;
double ydamage = 0;
double zdamage = 0;

int xmoves = 0, ymoves = 0, zmoves = 0;

//Knight stats
double knightmhp = 2000;
double knightmmp = 900;
double knighthp = 2000;
double knightmp = 1000;
double knightult = 100;
double knightatk = 100;
double knightdef = 100;
double knightmag = 80;
double knightmdf = 80;
double knightluck = 10;
double knightmaxammo = 0;
double knightammo = 0;
double knightreload = 0;
double knightgunatk = 0;

//Prist stats
double priestmhp = 1500;
double priestmmp = 1500;
double priesthp = 1500;
double priestmp = 1500;
double priestult = 100;
double priestatk = 60;
double priestdef = 70;
double priestmag = 120;
double priestmdf = 120;
double priestluck = 10;
double priestmaxammo = 0;
double priestammo = 0;
double priestreload = 0;
double priestgunatk = 0;

//Assasin stats
double assassinmhp = 1300;
double assassinmmp = 500;
double assassinhp = 1200;
double assassinmp = 500;
double assassinult = 100;
double assassinatk = 100;
double assassindef = 75;
double assassinmag = 75;
double assassinmdf = 75;
double assassinluck = 15;
double assassinmaxammo = 1;
double assassinammo = 1;
double assassinreload = 1;
double assassingunatk = 600;

//Tank stats
double tankmhp = 2500;
double tankmmp = 600;
double tankhp = 2500;
double tankmp = 800;
double tankult = 100;
double tankatk = 90;
double tankdef = 115;
double tankmag = 90;
double tankmdf = 70;
double tankluck = 7.5;
double tankmaxammo = 0;
double tankammo = 0;
double tankreload = 0;
double tankgunatk = 0;

//Mage stats
double magemhp = 1700;
double magemmp = 1500;
double magehp = 1700;
double magemp = 1500;
double mageult = 100;
double mageatk = 70;
double magedef = 75;
double magemag = 160;
double magemdf = 140;
double mageluck = 10;
double magemaxammo = 0;
double mageammo = 0;
double magereload = 0;
double magegunatk = 0;

//Gunner stats
double gunnermhp = 2000;
double gunnermmp = 0;
double gunnerhp = 2000;
double gunnermp = 0;
double gunnerult = 100;
double gunneratk = 80;
double gunnerdef = 110;
double gunnermag = 0;
double gunnermdf = 75;
double gunnerluck = 19;
double gunnermaxammo = 50;
double gunnerammo = 50;
double gunnerreload = 3;
double gunnergunatk = 30;

//Gunmage
double gunmagemhp = 1900;
double gunmagemmp = 750;
double gunmagehp = 1900;
double gunmagemp = 750;
double gunmageult = 100;
double gunmageatk = 75;
double gunmagedef = 80;
double gunmagemag = 140;
double gunmagemdf = 80;
double gunmageluck = 11;
double gunmagemaxammo = 15;
double gunmageammo = 15;
double gunmagereload = 2;
double gunmagegunatk = 45;

//Reaper
double reapermhp = 2350;
double reapermmp = 875;
double reaperhp = 2350;
double reapermp = 875;
double reaperult = 100;
double reaperatk = 75;
double reaperdef = 80;
double reapermag = 140;
double reapermdf = 80;
double reaperluck = 18;
double reapermaxammo = 0;
double reaperammo = 0;
double reaperreload = 0;
double reapergunatk = 0;

int gamemode = 0;

double apoidamage = 0, apoidamagemult = 1;

int selectedclass = 0;

double knightskillacost = 300;
double knightskillbcost = 100;
double knightskillccost = 300;
double knightskilld1cost = 100;
double knightskilld2cost = 450;
double knightskilld3cost = 0;
double knightskillult1cost = 100;
double knightskillult2cost = 50;

double knightskillavalue = 20;
double knightskillbvalue = 110;
double knightskillcvalue = 30;
double knightskilld1value = 0;
double knightskilld2value = 0;
double knightskilld3value = 0;
double knightskillult1value = 0;
double knightskillult2value = 0;

double priestskillacost = 400;
double priestskillbcost = 400;
double priestskillccost = 200;
double priestskilld1cost = 0;
double priestskilld2cost = 575;
double priestskilld3cost = 150;
double priestskillult1cost = 100;
double priestskillult2cost = 100;

double priestskillavalue = 0;
double priestskillbvalue = 25;
double priestskillcvalue = 0;
double priestskilld1value = 0;
double priestskilld2value = 0;
double priestskilld3value = 50;
double priestskillult1value = 0;
double priestskillult2value = 60;

double tankskillacost = 300;
double tankskillbcost = 100;
double tankskillccost = 300;
double tankskilld1cost = 100;
double tankskilld2cost = 450;
double tankskilld3cost = 0;
double tankskillult1cost = 100;
double tankskillult2cost = 50;

double tankskillavalue = 20;
double tankskillbvalue = 110;
double tankskillcvalue = 30;
double tankskilld1value = 0;
double tankskilld2value = 0;
double tankskilld3value = 0;
double tankskillult1value = 0;
double tankskillult2value = 0;

double mageskillacost = 300;
double mageskillbcost = 100;
double mageskillccost = 300;
double mageskilld1cost = 100;
double mageskilld2cost = 450;
double mageskilld3cost = 0;
double mageskillult1cost = 100;
double mageskillult2cost = 50;

double mageskillavalue = 20;
double mageskillbvalue = 110;
double mageskillcvalue = 30;
double mageskilld1value = 0;
double mageskilld2value = 0;
double mageskilld3value = 0;
double mageskillult1value = 0;
double mageskillult2value = 0;

double gunnerskillacost = 300;
double gunnerskillbcost = 100;
double gunnerskillccost = 300;
double gunnerskilld1cost = 100;
double gunnerskilld2cost = 450;
double gunnerskilld3cost = 0;
double gunnerskillult1cost = 100;
double gunnerskillult2cost = 50;

double gunnerskillavalue = 20;
double gunnerskillbvalue = 110;
double gunnerskillcvalue = 30;
double gunnerskilld1value = 0;
double gunnerskilld2value = 0;
double gunnerskilld3value = 0;
double gunnerskillult1value = 0;
double gunnerskillult2value = 0;

double gunmageskillacost = 300;
double gunmageskillbcost = 100;
double gunmageskillccost = 300;
double gunmageskilld1cost = 100;
double gunmageskilld2cost = 450;
double gunmageskilld3cost = 0;
double gunmageskillult1cost = 100;
double gunmageskillult2cost = 50;

double gunmageskillavalue = 20;
double gunmageskillbvalue = 110;
double gunmageskillcvalue = 30;
double gunmageskilld1value = 0;
double gunmageskilld2value = 0;
double gunmageskilld3value = 0;
double gunmageskillult1value = 0;
double gunmageskillult2value = 0;

double assassinskillacost = 75;
double assassinskillbcost = 0;
double assassinskillccost = 100;
double assassinskilld1cost = 150;
double assassinskilld2cost = 50;
double assassinskilld3cost = 150;
double assassinskillult1cost = 50;
double assassinskillult2cost = 100;

double assassinskillavalue = 1;
double assassinskillbvalue = 0;
double assassinskillcvalue = 40;
double assassinskilld1value = 0;
double assassinskilld2value = 100;
double assassinskilld3value = 4;
double assassinskillult1value = 2;
double assassinskillult2value = 1;

public static void main(String[] args) {
new Main("Main");
}

public void jaknight_ActionPerformed(ActionEvent evt) {
selectedclass = 1;
jaknight.setBackground(Color.RED);
japriest.setBackground(Color.WHITE);
jaassasin.setBackground(Color.WHITE);
jatank.setBackground(Color.WHITE);
jamage.setBackground(Color.WHITE);
jagunner.setBackground(Color.WHITE);
jagunmage.setBackground(Color.WHITE);
jareaper.setBackground(Color.WHITE);
jaclass.setText("Class: Knight");
jaskilld1.setText("Halfswording");
jaskilld2.setText("Self Heal");
jaskilld3.setText("Berserk Mode");
jault1.setText("Armor Buff");
jault2.setText("Vengeance");

jTextArea1.setText("Description: Balanced Fighter with a");
jTextArea1.append("\nvarrity of diffent skills making");
jTextArea1.append("\nthe Knight very adaptive to all kinds");
jTextArea1.append("\nof situations.");
jTextArea1.append("\n");

jTextArea1.append("\nStats:");
jTextArea1.append("\nHP: " + knightmhp);
jTextArea1.append(" MP: " + knightmmp);
jTextArea1.append("\nATK: " + knightatk);
jTextArea1.append(" Def: " + knightdef);
jTextArea1.append("\nMAG: " + knightmag);
jTextArea1.append(" MDF: " + knightmdf);
jTextArea1.append("\nLUCK: " + knightluck);
jTextArea1.append("\n");

jTextArea1.append("\nSkills:");
jTextArea1.append("\nBattle Cry: Buffs atk.");
jTextArea1.append("\n");
jTextArea1.append("\nSelf Detox: Removes Poison by.");
jTextArea1.append("\n");
jTextArea1.append("\nHoly Shield: Buffs mdf by.");

if (playerID==1)
{ aclass = selectedclass;}

if (playerID==2)
{bclass = selectedclass;}
}

public void japriest_ActionPerformed(ActionEvent evt) {
selectedclass = 2;
japriest.setBackground(Color.RED);
jaknight.setBackground(Color.WHITE);
jaassasin.setBackground(Color.WHITE);
jatank.setBackground(Color.WHITE);
jamage.setBackground(Color.WHITE);
jagunner.setBackground(Color.WHITE);
jagunmage.setBackground(Color.WHITE);
jareaper.setBackground(Color.WHITE);
jaclass.setText("Class: Priest");
jaskilld1.setText("Full Scale Heal");
jaskilld2.setText("Mass Heal");
jaskilld3.setText("God's Curse");
jault1.setText("Mother's Protection");
jault2.setText("Father's Rage");

jTextArea1.setText("Description: A support class with");
jTextArea1.append("\nlots of healing and buff skills.");
jTextArea1.append("\nVery suited for team battles.");
jTextArea1.append("\nNot suited for 1v1.");
jTextArea1.append("\n");

jTextArea1.append("\nStats:");
jTextArea1.append("\nHP: " + priestmhp);
jTextArea1.append(" MP: " + priestmmp);
jTextArea1.append("\nATK: " + priestatk);
jTextArea1.append(" Def: " + priestdef);
jTextArea1.append("\nMAG: " + priestmag);
jTextArea1.append(" MDF: " + priestmdf);
jTextArea1.append("\nLUCK: " + priestluck);
jTextArea1.append("\n");

jTextArea1.append("\nSkills:");
jTextArea1.append("\nHeal: Heals: Restores hp.");
jTextArea1.append("\n");
jTextArea1.append("\nHoly Ward: Buffs def and mdf.");
jTextArea1.append("\n");
jTextArea1.append("\nHoly Fireball: Deals magic damage.");

if(playerID==1) {aclass = selectedclass;}
if(playerID==2) {bclass = selectedclass;}

}

public void jaassasin_ActionPerformed(ActionEvent evt) {
selectedclass = 3;
jaknight.setBackground(Color.WHITE);
japriest.setBackground(Color.WHITE);
jaassasin.setBackground(Color.RED);
jatank.setBackground(Color.WHITE);
jamage.setBackground(Color.WHITE);
jagunner.setBackground(Color.WHITE);
jagunmage.setBackground(Color.WHITE);
jareaper.setBackground(Color.WHITE);
jaclass.setText("Class: Assasin");
jaskilld1.setText("Assasination");
jaskilld2.setText("Enchanted Stab");
jaskilld3.setText("Multi Slash");
jault1.setText("Evasion");
jault2.setText("Interrupting Stab");

jTextArea1.setText("Description: Extremly leathal class");
jTextArea1.append("\nable to usilise various complex");
jTextArea1.append("\nstrageties at the cost of defensive");
jTextArea1.append("\ncapasities. Difficult to play.");
jTextArea1.append("\n");

jTextArea1.append("\nStats:");
jTextArea1.append("\nHP: " + assassinmhp);
jTextArea1.append(" MP: " + assassinmmp);
jTextArea1.append("\nATK: " + assassinatk);
jTextArea1.append(" Def: " + assassindef);
jTextArea1.append("\nMAG: " + assassinmag);
jTextArea1.append(" MDF: " + assassinmdf);
jTextArea1.append("\nLUCK: " + assassinluck);
jTextArea1.append(" AMMO: " +assassinmaxammo);
jTextArea1.append("\nRELOAD: " +assassinreload);
jTextArea1.append(" GUNATK: " +assassingunatk);
jTextArea1.append("\n");

jTextArea1.append("\nSkills:");
jTextArea1.append("\nDodge: Evades an attack.");
jTextArea1.append("\n");
jTextArea1.append("\nCrossbow: Shots a bolt. No reload.");
jTextArea1.append("\n");
jTextArea1.append("\nPoisoned Slash: Deals damage.");

if(playerID==1) {aclass = selectedclass;}
if(playerID==2) {bclass = selectedclass;}

}

public void jatank_ActionPerformed(ActionEvent evt) {
selectedclass = 4;
jaknight.setBackground(Color.WHITE);
japriest.setBackground(Color.WHITE);
jaassasin.setBackground(Color.WHITE);
jatank.setBackground(Color.RED);
jamage.setBackground(Color.WHITE);
jagunner.setBackground(Color.WHITE);
jagunmage.setBackground(Color.WHITE);
jareaper.setBackground(Color.WHITE);
jaclass.setText("Class: Tank");
jaskilld1.setText("Punch");
jaskilld2.setText("Battle Cry");
jaskilld3.setText("Holy Ward");
jault1.setText("War Cry");
jault2.setText("Heavy Slash");

jTextArea1.setText("Description: Ridiculously defensive");
jTextArea1.append("\nas well as offensive fighter.");
jTextArea1.append("\nSubstainibility is further increased");
jTextArea1.append("\nby utility skills that either stun");
jTextArea1.append("\nor make the you harder to kill.");
jTextArea1.append("\n");

jTextArea1.append("\nStats:");
jTextArea1.append("\nHP: " + tankmhp);
jTextArea1.append(" MP: " + tankmmp);
jTextArea1.append("\nATK: " + tankatk);
jTextArea1.append(" Def: " + tankdef);
jTextArea1.append("\nMAG: " + tankmag);
jTextArea1.append(" MDF: " + tankmdf);
jTextArea1.append("\nLUCK: " + tankluck);
jTextArea1.append("\n");

jTextArea1.append("\nSkills:");
jTextArea1.append("\nToughening: Buffs def.");
jTextArea1.append("\n");
jTextArea1.append("\nHeadbutt: Deals damage.");
jTextArea1.append("\nChance to stun the target.");
jTextArea1.append("\n");
jTextArea1.append("\nDopping: Heals self. Poisons self");

if(playerID==1) {aclass = selectedclass;}
if(playerID==2) {bclass = selectedclass;}

}

public void jamage_ActionPerformed(ActionEvent evt) {
selectedclass = 5;
jaknight.setBackground(Color.WHITE);
japriest.setBackground(Color.WHITE);
jaassasin.setBackground(Color.WHITE);
jatank.setBackground(Color.WHITE);
jamage.setBackground(Color.RED);
jagunner.setBackground(Color.WHITE);
jagunmage.setBackground(Color.WHITE);
jareaper.setBackground(Color.WHITE);
jaclass.setText("Class: Mage");
jaskilld1.setText("Arcane Charging");
jaskilld2.setText("Firestorm");
jaskilld3.setText("Magic Blade");
jault1.setText("Arcane Conversion");
jault2.setText("Arcane Discharge");

jTextArea1.setText("Description: Fighter that commands");
jTextArea1.append("\nthe power of magic ignoring the");
jTextArea1.append("\nenemy's regular defense. Can be");
jTextArea1.append("\nplayed in many diffent ways from");
jTextArea1.append("\nheavy hitter builds to utility builds.");
jTextArea1.append("\n");

jTextArea1.append("\nStats:");
jTextArea1.append("\nHP: " + magemhp);
jTextArea1.append(" MP: " + magemmp);
jTextArea1.append("\nATK: " + mageatk);
jTextArea1.append(" Def: " + magedef);
jTextArea1.append("\nMAG: " + magemag);
jTextArea1.append(" MDF: " + magemdf);
jTextArea1.append("\nLUCK: " + mageluck);
jTextArea1.append("\n");

jTextArea1.append("\nSkills:");
jTextArea1.append("\nMagic Armor: Buffs def.");
jTextArea1.append("\n");
jTextArea1.append("\nFireball: Deals magic damage.");
jTextArea1.append("\n");
jTextArea1.append("\nFireburst: Deals magic damage.");
jTextArea1.append("\nDamage depends on luck.");

if(playerID==1) {aclass = selectedclass;}
if(playerID==2) {bclass = selectedclass;}

}

public void jagunmage_ActionPerformed(ActionEvent evt) {
selectedclass = 7;
jaknight.setBackground(Color.WHITE);
japriest.setBackground(Color.WHITE);
jaassasin.setBackground(Color.WHITE);
jatank.setBackground(Color.WHITE);
jamage.setBackground(Color.WHITE);
jagunner.setBackground(Color.WHITE);
jagunmage.setBackground(Color.RED);
jareaper.setBackground(Color.WHITE);
jaclass.setText("Class: Gunmage");
aclass = 7;
jaskilld1.setText("Magic Reload");
jaskilld2.setText("Accelerator");
jaskilld3.setText("Granate");
jault1.setText("Poisoned Bullets");
jault2.setText("Absorber");

jTextArea1.setText("Descripion: An extremly versitile");
jTextArea1.append("\nhybrid class utilising magic as");
jTextArea1.append("\nwell as guns. Has an ovensive and");
jTextArea1.append("\ndiverse playing style due to the");
jTextArea1.append("\nthe many diffent skill options.");
jTextArea1.append("\n");

jTextArea1.append("\nStats:");
jTextArea1.append("\nHP: " + gunmagemhp);
jTextArea1.append(" MP: " + gunmagemmp);
jTextArea1.append("\nATK: " + gunmageatk);
jTextArea1.append(" Def: " + gunmagedef);
jTextArea1.append("\nMAG: " + gunmagemag);
jTextArea1.append(" MDF: " + gunmagemdf);
jTextArea1.append("\nLUCK: " + gunmageluck);
jTextArea1.append("AMMO: " +gunmagemaxammo);
jTextArea1.append("\nRELOAD: "+gunmagereload);
jTextArea1.append(" GUNATK: "+gunmagegunatk);
jTextArea1.append("\n");

jTextArea1.append("\nSkills:");
jTextArea1.append("\nReload: Depends on luck.");
jTextArea1.append("\n");
jTextArea1.append("\nBurst: Shoots 5 bulllets.");
jTextArea1.append("\nHit chance: "+1);
jTextArea1.append("\n");
jTextArea1.append("\nMagic Burst: Deals magic damage.");
jTextArea1.append("\nDamage depends on luck.");

if(playerID==1) {aclass = selectedclass;}
if(playerID==2) {bclass = selectedclass;}

}

public void jagunner_ActionPerformed(ActionEvent evt) {
selectedclass = 6;
jaknight.setBackground(Color.WHITE);
japriest.setBackground(Color.WHITE);
jaassasin.setBackground(Color.WHITE);
jatank.setBackground(Color.WHITE);
jamage.setBackground(Color.WHITE);
jagunner.setBackground(Color.RED);
jagunmage.setBackground(Color.WHITE);
jareaper.setBackground(Color.WHITE);
jaclass.setText("Class: Gunner");
aclass = 6;
jaskilld1.setText("Shotgun");
jaskilld2.setText("Flammethower");
jaskilld3.setText("Granate");
jault1.setText("Anti Magic Field");
jault2.setText("Extra Magazin");

jTextArea1.setText("Descripion: A character unable to");
jTextArea1.append("\nuse any form of magic. What he");
jTextArea1.append("\nlacks in magic, he more than");
jTextArea1.append("\ncompensates with his gun and");
jTextArea1.append("\nability to counter magic in terms");
jTextArea1.append("\nof damage.");
jTextArea1.append("\n");

jTextArea1.append("\nStats:");
jTextArea1.append("\nHP: " + gunnermhp);
jTextArea1.append(" MP: " + gunnermmp);
jTextArea1.append("\nATK: " + gunneratk);
jTextArea1.append(" Def: " + gunnerdef);
jTextArea1.append("\nMAG: " + gunnermag);
jTextArea1.append(" MDF: " + gunnermdf);
jTextArea1.append("\nLUCK: " + gunnerluck);
jTextArea1.append(" AMMO: " +gunnermaxammo);
jTextArea1.append("\nRELOAD: "+gunnerreload);
jTextArea1.append(" GUNATK: "+gunnergunatk);
jTextArea1.append("\n");

jTextArea1.append("\nSkills:");
jTextArea1.append("\nReload: Depends on luck.");
jTextArea1.append("\n");
jTextArea1.append("\nShort Burst: Fires 10 Bullets.");
jTextArea1.append("\nHit chance: "+1);
jTextArea1.append("\n");
jTextArea1.append("\nLong Burst: Fires 20 Bullets");
jTextArea1.append("\nHit chance: "+1);

if(playerID==1) {aclass = selectedclass;}
if(playerID==2) {bclass = selectedclass;}

}

public void jaskilld1_ActionPerformed(ActionEvent evt) {
jaskilld1.setBackground(Color.RED);
jaskilld2.setBackground(Color.WHITE);
jaskilld3.setBackground(Color.WHITE);
if (playerID==1)
{askill = 1;}

if (playerID==2)
{bskill = 1;}

if (selectedclass == 1) {
jTextArea2.setText("Halfswording: Deals damage.");
jTextArea2.append("\nIgnores enemy defense.");
}

if (selectedclass == 2) {
jTextArea2.setText("Full Scale Healing: Converts all mp");
jTextArea2.append("\ninto a healing spell..");
}

if (selectedclass == 3) {
jTextArea2.setText("Assassination: Deals x damage.");
jTextArea2.append("\nx equals enemy's (maxhp - hp) / 4.");
}

if (selectedclass == 4) {
jTextArea2.setText("Punch: Deals damage.");
jTextArea2.append("\nChance to stun: "+ 100);
}

if (selectedclass == 5) {
jTextArea2.setText("Arcane Charginig: Recovers 100% ult.");
jTextArea2.append("\nOnly usable every fifth turn. (5,10,15...)");
}

if (selectedclass == 6) {
jTextArea2.setText("Shotgun Mode: Shoots all bullets");
jTextArea2.append("\n50% hit per bullet.");
}

if (selectedclass == 7) {
jTextArea2.setText("Magic Reload: Fills the clip with");
jTextArea2.append("\n15 bullets. Cannot increase clip size.");
}

}

public void jaskilld3_ActionPerformed(ActionEvent evt) {
jaskilld1.setBackground(Color.WHITE);
jaskilld2.setBackground(Color.WHITE);
jaskilld3.setBackground(Color.RED);

if (playerID==1)
{askill = 3;}

if (playerID==2)
{bskill = 3;}

if (selectedclass == 1) {
jTextArea2.setText("Rage Mode: Converts all mp into");
jTextArea2.append("\natk, def, mag, mdf.");
}

if (selectedclass == 2) {
jTextArea2.setText("Mass Healing: Converts all mp");
jTextArea2.append("\ninto a healing spell..");
}

if (selectedclass == 3) {
jTextArea2.setText("Multi Attack: Deals damage multiple");
jTextArea2.append("\ntimes. Good against low def.");
}

if (selectedclass == 4) {
jTextArea2.setText("Punch: Deals damage.");
jTextArea2.append("\nChance to stun.");
}

if (selectedclass == 5) {
jTextArea2.setText("Magic Blade: Converts magic into");
jTextArea2.append("\nphysical attack. Then deals damage.");
}

if (selectedclass == 6) {
jTextArea2.setText("Granate: Deals massive damage.");
jTextArea2.append("\nOne time use. Stuns self for a turn.");
}

if (selectedclass == 7) {
jTextArea2.setText("Granate: Deals massive damage.");
jTextArea2.append("\nOne time use. Stuns self for a turn.");
}

}

public void jaskilld2_ActionPerformed(ActionEvent evt) {
jaskilld1.setBackground(Color.WHITE);
jaskilld2.setBackground(Color.RED);
jaskilld3.setBackground(Color.WHITE);

if (playerID==1)
{askill = 2;}

if (playerID==2)
{bskill = 2;}

if (selectedclass == 1) {
jTextArea2.setText("Self Heal: Restores x hp.");
jTextArea2.append("\nx equals: mag * " + 1);
}

if (selectedclass == 2) {
jTextArea2.setText("God's Curse: Poisons an enemy");
jTextArea2.append("\nby: " + 1);
}

if (selectedclass == 3) {
jTextArea2.setText("Enchanted Blade: Reduces enemy's");
jTextArea2.append("\nmaxhp to current hp. Deals Damage.");
jTextArea2.append("\nDrains mp.");
}

if (selectedclass == 4) {
jTextArea2.setText("Battle Cry: Buffs ATK by: "+1);
}

if (selectedclass == 5) {
jTextArea2.setText("Fire Storm: Deals magic damage to all");
jTextArea2.append("\nenemies. Damage depends on luck.");
}

if (selectedclass == 6) {
jTextArea2.setText("Flamme Thrower: Deals a set");
jTextArea2.append("\nammount of damage.");
jTextArea2.append("\nIgnores doge, def...");
}

if (selectedclass == 7) {
jTextArea2.setText("Acceleration: Uses 350 mp,");
jTextArea2.append("\ngrants a second turn.");
}

}

public void jault1_ActionPerformed(ActionEvent evt) {
jault1.setBackground(Color.RED);
jault2.setBackground(Color.WHITE);

if(playerID==1)
{aultskill = 1;}

if(playerID==2)
{bultskill = 1;}

if (selectedclass == 1) {
jTextArea3.setText("Heavy Armor: Increases def by x.");
jTextArea3.append("\nx equals:" + 1);
}

if (selectedclass == 2) {
jTextArea3.setText("Mother's Protection: Negates all");
jTextArea3.append("\nincoming damage for one turn.");
}

if (selectedclass == 3) {
jTextArea3.setText("Evasion: Negates all enemy");
jTextArea3.append("\ndamage for 2 turns.");
}

if (selectedclass == 4) {
jTextArea3.setText("War Cry: Debuffs all enemies");
jTextArea3.append("\natk, buffs own atk.");
}

if (selectedclass == 5) {
jTextArea3.setText("Arcane Conversion: Converts all");
jTextArea3.append("\n Ult into mp.");
}

if (selectedclass == 6) {
jTextArea3.setText("Anti Magic Field: Deploy's an");
jTextArea3.append("\nAnti-Magic-Field nerfing all magic");
jTextArea3.append("\nmassivly as well as decreasing all");
jTextArea3.append("\nplayer's mp by 60%.");

}

if (selectedclass == 7) {
jTextArea3.setText("Poisoned Bullets: Fires 5 Bullets that");
jTextArea3.append("\neach poison their target after impact.");

}

}

public void jault2_ActionPerformed(ActionEvent evt) {
jault1.setBackground(Color.WHITE);
jault2.setBackground(Color.RED);

if(playerID==1)
{aultskill = 2;}

if(playerID==2)
{bultskill = 2;}

if (selectedclass == 1) {
jTextArea3.setText("Vengeance: The less hp you have,");
jTextArea3.append("\nthe more damage you deal.");
}

if (selectedclass == 2) {
jTextArea3.setText("Father's Rage: Buffs an ally's");
jTextArea3.append("\natk by: " + 1);
}

if (selectedclass == 3) {
jTextArea3.setText("Interrupting Stab: Negates an");
jTextArea3.append("\nenemy's next move.");
}

if (selectedclass == 4) {
jTextArea3.setText("Heavy Slash: Deals a massive");
jTextArea3.append("\nammount of damage.");
jTextArea3.append("\nStuns self for a turn.");

}

if (selectedclass == 5) {
jTextArea3.setText("Arcane Discharge: Give's yourself a");
jTextArea3.append("\nsecond turn. Buffs own magic.");
jTextArea3.append("\nOnly usable every 4th turn.");
}

if (selectedclass == 6) {
jTextArea3.setText("Second Magazin: Refills entire ammo.");
}

if (selectedclass == 7) {
jTextArea3.setText("Absorber: Deploy's an absorter shield");
jTextArea3.append("\nthat reduces all damage, exept");
jTextArea3.append("\nfor damage by status effects.");

}

}

public void jStart_ActionPerformed(ActionEvent evt) {
if ((playerID==1&&askill > 0) && (aultskill > 0) && (aclass > 0)) {
janame.setText("\n" + janameselect.getText());

if (askill == 1) {
adskill.setText("" + jaskilld1.getText());
}

if (askill == 2) {
adskill.setText("" + jaskilld2.getText());
}

if (askill == 3) {
adskill.setText("" + jaskilld3.getText());
}

if (aultskill == 1) {
jaultskill.setText("" + jault1.getText());
}

if (aultskill == 2) {
jaultskill.setText("" + jault2.getText());
}

janame.setText("" + janameselect.getText());

if (aclass == 1) {
aaskill.setText("Battle Cry");
abskill.setText("Self Detox");
acskill.setText("Holy Shield");
}

if (aclass == 2) {
aaskill.setText("Heal");
abskill.setText("Holy Ward");
acskill.setText("Holy Fireball");
}

if (aclass == 3) {
aaskill.setText("Dodge");
abskill.setText("Crossbow");
acskill.setText("Poison Blade");
}

if (aclass == 4) {
aaskill.setText("Battle Cry");
abskill.setText("Headbutt");
acskill.setText("Punch");
}

if (aclass == 5) {
aaskill.setText("Magic Armor");
abskill.setText("Fireball");
acskill.setText("Fireburst");
}

if (aclass == 5) {
aaskill.setText("Magic Armor");
abskill.setText("Fireball");
acskill.setText("Fireburst");
}

if (aclass == 6) {
aaskill.setText("Short Burst");
abskill.setText("Long Burst");
acskill.setText("Reload");
}

if (aclass == 7) {
aaskill.setText("Burst");
abskill.setText("Explosive Bullet");
acskill.setText("Reload");
}

gamemode = 1;

jafinalclass.setText(""+ jaclass.getText());

playerID = playerID + 1;

} else if (playerID==1) {
jStart.setText("Try Again!");
}

if ((playerID==2&&bskill > 0) && (bultskill > 0) && (bclass > 0)) {
janame1.setText("\n" + janameselect.getText());

if (bskill == 1) {
adskill1.setText("" + jaskilld1.getText());
}

if (bskill == 2) {
adskill1.setText("" + jaskilld2.getText());
}

if (bskill == 3) {
adskill1.setText("" + jaskilld3.getText());
}

if (bultskill == 1) {
jaultskill1.setText("" + jault1.getText());
}

if (bultskill == 2) {
jaultskill1.setText("" + jault2.getText());
}

janame1.setText("" + janameselect.getText());

aattack.setBounds(0, 64, 121, 23);
aaskill.setBounds(0, 96, 121, 23);
abskill.setBounds(0, 128, 121, 23);
acskill.setBounds(0, 160, 121, 23);
adskill.setBounds(0, 192, 121, 23);
jaultskill.setBounds(0, 224, 121, 23);

if (bclass == 1) {
aaskill1.setText("Battle Cry");
abskill1.setText("Self Detox");
acskill1.setText("Holy Shield");
}

if (bclass == 2) {
aaskill1.setText("Heal");
abskill1.setText("Holy Ward");
acskill1.setText("Holy Fireball");
}

if (bclass == 3) {
aaskill1.setText("Dodge");
abskill1.setText("Crossbow");
acskill1.setText("Poison Blade");
}

if (bclass == 4) {
aaskill1.setText("Battle Cry");
abskill1.setText("Headbutt");
acskill1.setText("Punch");
}

if (bclass == 5) {
aaskill1.setText("Magic Armor");
abskill1.setText("Fireball");
acskill1.setText("Fireburst");
}

if (bclass == 6) {
aaskill1.setText("Short Burst");
abskill1.setText("Long Burst");
acskill1.setText("Reload");
}

if (bclass == 7) {
aaskill1.setText("Burst");
abskill1.setText("Magic Burst");
acskill1.setText("Reload");
}

if (bclass == 8) {
aaskill1.setText("HP-Drain");
abskill1.setText("MP-Drain");
acskill1.setText("Skill Steal");
}

gamemode = 1;

jTextArea2.setVisible(false);
jTextArea3.setVisible(false);
jTextArea1.setText("Starting Battle");
amoves = 1;

playerID = playerID + 1;

jafinalclass1.setText(""+ jaclass.getText());

aattack.setVisible(true);
aaskill.setVisible(true);
abskill.setVisible(true);
acskill.setVisible(true);
adskill.setVisible(true);
jaultskill.setVisible(true);

janameselect.setVisible(false);
jaknight.setVisible(false);
japriest.setVisible(false);
jaassasin.setVisible(false);
jatank.setVisible(false);
jamage.setVisible(false);
jagunner.setVisible(false);
jagunmage.setVisible(false);
jareaper.setVisible(false);

jaskilld1.setVisible(false);
jaskilld2.setVisible(false);
jaskilld3.setVisible(false);

jault1.setVisible(false);
jault2.setVisible(false);

jaskill.setVisible(false);
jault.setVisible(false);

jaclass.setVisible(false);

jafinalclass.setVisible(true);
jafinalclass1.setVisible(true);

if (aclass == 1)

{
amhp = knightmhp;
ammp = knightmmp;
ahp = knighthp;
amp = knightmp;
ault = knightult;
aatk = knightatk;
adef = knightdef;
amag = knightmag;
amdf = knightmdf;
aluck = knightluck;
amaxammo = knightmaxammo;
aammo = knightammo;
areload = knightreload;
agunatk = knightgunatk;
}

if (aclass == 2)
{
amhp = priestmhp;
ammp = priestmmp;
ahp = priesthp;
amp = priestmp;
ault = priestult;
aatk = priestatk;
adef = priestdef;
amag = priestmag;
amdf = priestmdf;
aluck = priestluck;
amaxammo = priestmaxammo;
aammo = priestammo;
areload = priestreload;
agunatk = priestgunatk;
}

if (aclass == 3)
{
amhp = assassinmhp;
ammp = assassinmmp;
ahp = assassinhp;
amp = assassinmp;
ault = assassinult;
aatk = assassinatk;
adef = assassindef;
amag = assassinmag;
amdf = assassinmdf;
aluck = assassinluck;
amaxammo = assassinmaxammo;
aammo = assassinammo;
areload = assassinreload;
agunatk = assassingunatk;
}

if (aclass == 4)
{
amhp = tankmhp;
ammp = tankmmp;
ahp = tankhp;
amp = tankmp;
ault = tankult;
aatk = tankatk;
adef = tankdef;
amag = tankmag;
amdf = tankmdf;
aluck = tankluck;
amaxammo = tankmaxammo;
aammo = tankammo;
areload = tankreload;
agunatk = tankgunatk;
}

if (aclass == 5)
{
amhp = magemhp;
ammp = magemmp;
ahp = magehp;
amp = magemp;
ault = mageult;
aatk = mageatk;
adef = magedef;
amag = magemag;
amdf = magemdf;
aluck = mageluck;
amaxammo = magemaxammo;
aammo = mageammo;
areload = magereload;
agunatk = magegunatk;
}

if (aclass == 6)
{
amhp = gunnermhp;
ammp = gunnermmp;
ahp = gunnerhp;
amp = gunnermp;
ault = gunnerult;
aatk = gunneratk;
adef = gunnerdef;
amag = gunnermag;
amdf = gunnermdf;
aluck = gunnerluck;
amaxammo = gunnermaxammo;
aammo = gunnerammo;
areload = gunnerreload;
agunatk = gunnergunatk;
}

if (aclass == 7)
{
amhp = gunmagemhp;
ammp = gunmagemmp;
ahp = gunmagehp;
amp = gunmagemp;
ault = gunmageult;
aatk = gunmageatk;
adef = gunmagedef;
amag = gunmagemag;
amdf = gunmagemdf;
aluck = gunmageluck;
amaxammo = gunmagemaxammo;
aammo = gunmageammo;
areload = gunmagereload;
agunatk = gunmagegunatk;
}

if (aclass == 8)
{
amhp = reapermhp;
ammp = reapermmp;
ahp = reaperhp;
amp = reapermp;
ault = reaperult;
aatk = reaperatk;
adef = reaperdef;
amag = reapermag;
amdf = reapermdf;
aluck = reaperluck;
amaxammo = reapermaxammo;
aammo = reaperammo;
areload = reaperreload;
agunatk = reapergunatk;
}

if (bclass == 1)
{
bmhp = knightmhp;
bmmp = knightmmp;
bhp = knighthp;
bmp = knightmp;
bult = knightult;
batk = knightatk;
bdef = knightdef;
bmag = knightmag;
bmdf = knightmdf;
bluck = knightluck;
bmaxammo = knightmaxammo;
bammo = knightammo;
breload = knightreload;
bgunatk = knightgunatk;
}

if (bclass == 2)
{
bmhp = priestmhp;
bmmp = priestmmp;
bhp = priesthp;
bmp = priestmp;
bult = priestult;
batk = priestatk;
bdef = priestdef;
bmag = priestmag;
bmdf = priestmdf;
bluck = priestluck;
bmaxammo = priestmaxammo;
bammo = priestammo;
breload = priestreload;
bgunatk = priestgunatk;
}

if (bclass == 3)
{
bmhp = assassinmhp;
bmmp = assassinmmp;
bhp = assassinhp;
bmp = assassinmp;
bult = assassinult;
batk = assassinatk;
bdef = assassindef;
bmag = assassinmag;
bmdf = assassinmdf;
bluck = assassinluck;
bmaxammo = assassinmaxammo;
bammo = assassinammo;
breload = assassinreload;
bgunatk = assassingunatk;
}

if (bclass == 4)
{
bmhp = tankmhp;
bmmp = tankmmp;
bhp = tankhp;
bmp = tankmp;
bult = tankult;
batk = tankatk;
bdef = tankdef;
bmag = tankmag;
bmdf = tankmdf;
bluck = tankluck;
bmaxammo = tankmaxammo;
bammo = tankammo;
breload = tankreload;
bgunatk = tankgunatk;
}

if (bclass == 5)
{
bmhp = magemhp;
bmmp = magemmp;
bhp = magehp;
bmp = magemp;
bult = mageult;
batk = mageatk;
bdef = magedef;
bmag = magemag;
bmdf = magemdf;
bluck = mageluck;
bmaxammo = magemaxammo;
bammo = mageammo;
breload = magereload;
bgunatk = magegunatk;
}

if (bclass == 6)
{
bmhp = gunnermhp;
bmmp = gunnermmp;
bhp = gunnerhp;
bmp = gunnermp;
bult = gunnerult;
batk = gunneratk;
bdef = gunnerdef;
bmag = gunnermag;
bmdf = gunnermdf;
bluck = gunnerluck;
bmaxammo = gunnermaxammo;
bammo = gunnerammo;
breload = gunnerreload;
bgunatk = gunnergunatk;
}

if (bclass == 7)
{
bmhp = gunmagemhp;
bmmp = gunmagemmp;
bhp = gunmagehp;
bmp = gunmagemp;
bult = gunmageult;
batk = gunmageatk;
bdef = gunmagedef;
bmag = gunmagemag;
bmdf = gunmagemdf;
bluck = gunmageluck;
bmaxammo = gunmagemaxammo;
bammo = gunmageammo;
breload = gunmagereload;
bgunatk = gunmagegunatk;
}

if (bclass == 8)
{
bmhp = reapermhp;
bmmp = reapermmp;
bhp = reaperhp;
bmp = reapermp;
bult = reaperult;
batk = reaperatk;
bdef = reaperdef;
bmag = reapermag;
bmdf = reapermdf;
bluck = reaperluck;
bmaxammo = reapermaxammo;
bammo = reaperammo;
breload = reaperreload;
bgunatk = reapergunatk;
}

jStart.setVisible(false);
jshowahp.setText("HP: "+ahp);
jshowahp1.setText("HP: "+bhp);
jshowamp.setText("MP: "+amp);
jshowamp1.setText("MP: "+bmp);
jshowault.setText("ULT: "+ault);
jshowault1.setText("ULT: "+bult);

}
else if (playerID==1) {
jStart.setText("Try Again!");
}

}

public void aattack_ActionPerformed(ActionEvent evt) {
abeforeattack();
attack();
jTextArea1.append("\nDamage dealt: "+t2damage);

aaftermove();
}

public void aaskill_ActionPerformed(ActionEvent evt) {
if (aclass==1)
{ if(amp>=knightskillacost)
{
abeforeattack();

knightskilla();
jTextArea1.append("\nAttack is now: "+t1atk);

aaftermove();
} else jTextArea1.append("\nConditions not furfilled.");
}

}

public void abskill_ActionPerformed(ActionEvent evt) {
if (aclass==1)
{ if(amp>=knightskillbcost)
{
abeforeattack();

knightskillb();
jTextArea1.append("\nPoison is now: "+t1poi);

aaftermove();
} else jTextArea1.append("\nConditions not furfilled.");
}

}

public void acskill_ActionPerformed(ActionEvent evt) {
if (aclass==1)
{ if(amp>=knightskillccost)
{
abeforeattack();

knightskillc();
jTextArea1.append("\nMDF is now: "+t1mdf);

aaftermove();
} else jTextArea1.append("\nConditions not furfilled.");
}

}

public void adskill_ActionPerformed(ActionEvent evt) {
if (aclass==1)
{

if (askill==1) {

if (amp>=knightskilld1cost)
{
abeforeattack();

knightskilld1();
jTextArea1.append("\nDamage dealt: "+t2damage);

aaftermove();
}}

if (askill==2) { if (amp>=knightskilld2cost)
{
abeforeattack();

knightskilld2();

aaftermove();

}}

if (askill==3) {
if (amp>=knightskilld3cost)
{
abeforeattack();

knightskilld3();
jTextArea1.append("\nStats are now.");
jTextArea1.append("\nATK: "+t1atk);
jTextArea1.append("DEF: "+t1def);
jTextArea1.append("\nMAG: "+t1mag);
jTextArea1.append("MDF: "+t1mdf);

aaftermove();
}}

} else jTextArea1.append("\nConditions not furfilled.");
}

public void jaultskill_ActionPerformed(ActionEvent evt) {
if (aclass==1)
{

if (aultskill==1) {
if (ault>=knightskillult1cost)
{
abeforeattack();

knightskillult1();
jTextArea1.append("\nDef now: "+t1def);

aaftermove();
} else jTextArea1.append("\nConditions not furfilled.");
}
}

}

public void janameselect_MouseClicked(MouseEvent evt) {
janameselect.setText("");
}

public void jareaper_ActionPerformed(ActionEvent evt) {
// TODO hier Quelltext einfügen
}

public void xattack(){
adamage = adamage + ((2 * xatk + Math.random () * xatk) - 1.5 * adef);
if (adamage>0) {ahp = ahp - adamage * adamagemult;}
adamage = 0;
ahp = ahp - apoidamage * apoidamagemult;

jshowahp.setText("HP: " +ahp);

}

public void damagecalculation()
{
t2damage = t2damage * t2damagemult;
t2poidamage = t2poi * t2poidamagemult;
if (t2damage>0) {t2hp = t2hp - t2damage;}
if (t2poi>0) {t2hp = t2hp - t2poidamage;}

t1heal = t1heal;

if(t1heal>0) {t1hp = t1hp + t1heal; jTextArea1.append("\nHeal: "+t1heal);}
if(t1hp>t1mhp) {t1hp = t1mhp;}

if (t2dodge>0) {t2dodge = t2dodge - 1;}
if (t2absorber>0) {t2absorber = t2absorber - 1;}
if (t2antimagic>0) {t2antimagic = t2antimagic - 1;}
if (t2reap>0) {t2reap = t2reap - 1;}

if (t2dodge==0) {t2damagemult = t2damagemult + 1; t2dodge = t2dodge - 1;}
if (t2absorber==0) {t2damagemult = t2damagemult + 0.5; t2absorber = t2absorber - 1;}
if (t2antimagic==0) {t1mag = t1mag + 1; t2mag = t2mag + 1; t2antimagic = t2antimagic - 1;}
if (t2reap==0) {t2damagemult = t2damagemult + 0.4; t2reap = t2reap - 1;}

}

public void aaftermove(){

damagecalculation();

amhp = t1mhp ; ahp = t1hp; ammp = t1mmp; amp = t1mp; ault = t1ult;
aatk = t1atk; adef = t1def; amag = t1mag; amdf = t1mdf; aluck = t1luck;
amaxammo = t1maxammo; aammo = t1ammo; areload = t1reload; agunatk = t1gunatk;
adamage = t1damage; adamagemult = t1damagemult; apoidamage = t1poidamage;
apoidamagemult = t1poidamagemult; apoi = t1poi; apoimult = t1poimult;

bmhp = t2mhp; bhp = t2hp; bmmp = t2mmp; bmp = t2mp; bult = t2ult;
batk = t2atk; bdef = t2def; bmag = t2mag; bmdf = t2mdf; bluck = t2luck;
bmaxammo = t2maxammo; bammo = t2ammo; breload = t2reload; bgunatk = t2gunatk;
bdamage = t2damage; bdamagemult = t2damagemult; bpoidamage = t2poidamage;
bpoidamagemult = t2poidamagemult; bpoi = t2poi; bpoimult = t2poimult;

ahealmult = t1healmult; aheal = t1heal; areg = t1reg; aregmult = t1regmult;
bhealmult = t2healmult; bheal = t2heal; breg = t2reg; bregmult = t2regmult;

adodge = t1dodge; aabsorber = t1absorber; aantimagic = t1antimagic;
areap = t1reap; atimes = t1times;
bdodge = t2dodge; babsorber = t2dodge; bantimagic = t2dodge;
breap = t2reap; btimes = t2times;

t1mhp = 0; t1hp = 0; t1mmp = 0; t1mp = 0; t1ult = 0;
t1atk = 0; t1def = 0; t1mag = 0; t1mdf = 0; t1luck = 0;
t1maxammo = 0; t1ammo = 0; t1reload = 0; t1gunatk = 0;
t1damage = 0; t1damagemult = 0; t1poidamage = 0;
t1poidamagemult = 0; t1poi = 0; t1poimult = 0;

t2mhp = 0; t2hp = 0; t2mmp = 0; t2mp = 0; t2ult = 0;
t2atk = 0; t2def = 0; t2mag = 0; t2mdf = 0; t2luck = 0;
t2maxammo = 0; t2ammo = 0; t2reload = 0; t2gunatk = 0;
t2damage = 0; t2damagemult = 0; t2poidamage = 0;
t2poidamagemult = 0; t2poi = 0; t2poimult = 0;

t1healmult = 0; t1heal = 0; t1reg = 0; t1regmult = 0;

t2healmult = 0; t2heal = 0; t2reg = 0; t2regmult = 0;

jshowahp.setText("HP: "+ahp);
jshowahp1.setText("HP: "+bhp);
jshowamp.setText("MP: "+amp);
jshowamp1.setText("MP: "+bmp);
jshowault.setText("ULT: "+ault);
jshowault1.setText("ULT: "+bult);

amoves = amoves - 1;
bmoves = bmoves + 1;

if(amoves<1) {adeactivate();}

if(bmoves<1) {bdeactivate();}

if(amoves>0) {aactivate();}

if(bmoves>0) {bactivate();}

if(amoves>0&&bmoves>0) {adeactivate();}

while(amoves<0||bmoves<0)
{bmoves = bmoves + 1;
if(bmoves>0) {bactivate();}
amoves = amoves + 1;
if(amoves>0) {aactivate();}
}

if(amoves>0&&bmoves>0) {bdeactivate();}

}

public void baftermove(){

damagecalculation();

amhp = t2mhp ; ahp = t2hp; ammp = t2mmp; amp = t2mp; ault = t2ult;
aatk = t2atk; adef = t2def; amag = t2mag; amdf = t2mdf; aluck = t2luck;
amaxammo = t2maxammo; aammo = t2ammo; areload = t2reload; agunatk = t2gunatk;
adamage = t2damage; adamagemult = t2damagemult; apoidamage = t2poidamage;
apoidamagemult = t2poidamagemult; apoi = t2poi; apoimult = t2poimult;

bmhp = t1mhp; bhp = t1hp; bmmp = t1mmp; bmp = t1mp; bult = t1ult;
batk = t1atk; bdef = t1def; bmag = t1mag; bmdf = t1mdf; bluck = t1luck;
bmaxammo = t1maxammo; bammo = t1ammo; breload = t1reload; bgunatk = t1gunatk;
bdamage = t1damage; bdamagemult = t1damagemult; bpoidamage = t1poidamage;
bpoidamagemult = t1poidamagemult; bpoi = t1poi; bpoimult = t1poimult;

adodge = t2dodge; aabsorber = t2absorber; aantimagic = t2antimagic;
areap = t2reap; atimes = t2times;

bdodge = t1dodge; babsorber = t1dodge; bantimagic = t1dodge;
breap = t1reap; btimes = t1times;

ahealmult = t2healmult; aheal = t2heal; areg = t2reg; aregmult = t2regmult;
bhealmult = t1healmult; bheal = t1heal; breg = t1reg; bregmult = t1regmult;

t1mhp = 0; t1hp = 0; t1mmp = 0; t1mp = 0; t1ult = 0;
t1atk = 0; t1def = 0; t1mag = 0; t1mdf = 0; t1luck = 0;
t1maxammo = 0; t1ammo = 0; t1reload = 0; t1gunatk = 0;
t1damage = 0; t1damagemult = 0; t1poidamage = 0;
t1poidamagemult = 0; t1poi = 0; t1poimult = 0;

t2mhp = 0; t2hp = 0; t2mmp = 0; t2mp = 0; t2ult = 0;
t2atk = 0; t2def = 0; t2mag = 0; t2mdf = 0; t2luck = 0;
t2maxammo = 0; t2ammo = 0; t2reload = 0; t2gunatk = 0;
t2damage = 0; t2damagemult = 0; t2poidamage = 0;
t2poidamagemult = 0; t2poi = 0; t2poimult = 0;

t1healmult = 0; t1heal = 0; t1reg = 0; t1regmult = 0;

t2healmult = 0; t2heal = 0; t2reg = 0; t2regmult = 0;

jshowahp.setText("HP: "+ahp);
jshowahp1.setText("HP: "+bhp);
jshowamp.setText("MP: "+amp);
jshowamp1.setText("MP: "+bmp);
jshowault.setText("ULT: "+ault);
jshowault1.setText("ULT: "+bult);

amoves = amoves + 1;
bmoves = bmoves - 1;

if(amoves<1) {adeactivate();}

if(bmoves<1) {bdeactivate();}

if(amoves>0) {aactivate();}

if(bmoves>0) {bactivate();}

if(amoves>0&&bmoves>0) {bdeactivate();}

while(amoves<0||bmoves<0)
{bmoves = bmoves + 1;
if(bmoves>0) {bactivate();}
amoves = amoves + 1;
if(amoves>0) {aactivate();}
} if(amoves>0&&bmoves>0) {adeactivate();}

}

public void aattack1_ActionPerformed(ActionEvent evt) {
bbeforeattack();
attack();
jTextArea1.append("\nDamage dealt: "+t2damage);

baftermove();

}

public void aaskill1_ActionPerformed(ActionEvent evt) {
// TODO hier Quelltext einfügen
}

public void abskill1_ActionPerformed(ActionEvent evt) {
// TODO hier Quelltext einfügen
}

public void acskill1_ActionPerformed(ActionEvent evt) {
// TODO hier Quelltext einfügen
}

public void adskill1_ActionPerformed(ActionEvent evt) {
// TODO hier Quelltext einfügen
}

public void jaultskill1_ActionPerformed(ActionEvent evt) {
// TODO hier Quelltext einfügen
}

public void aactivate()
{aaskill.setVisible(true);
abskill.setVisible(true);
acskill.setVisible(true);
adskill.setVisible(true);
jaultskill.setVisible(true);
aattack.setVisible(true);
}

public void adeactivate()

{aaskill.setVisible(false);
abskill.setVisible(false);
acskill.setVisible(false);
adskill.setVisible(false);
jaultskill.setVisible(false);
aattack.setVisible(false);
}

public void bactivate()

{aaskill1.setVisible(true);
abskill1.setVisible(true);
acskill1.setVisible(true);
adskill1.setVisible(true);
jaultskill1.setVisible(true);
aattack1.setVisible(true);
}

public void bdeactivate()

{aaskill1.setVisible(false);
abskill1.setVisible(false);
acskill1.setVisible(false);
adskill1.setVisible(false);
jaultskill1.setVisible(false);
aattack1.setVisible(false);
}

public void abeforeattack()
{
t1mhp = amhp; t1hp = ahp; t1mmp = ammp; t1mp = amp; t1ult = ault;
t1atk = aatk; t1def = adef; t1mag = amag; t1mdf = amdf; t1luck = aluck;
t1maxammo = amaxammo; t1ammo = aammo; t1reload = areload; t1gunatk = agunatk;
t1damage = adamage; t1damagemult = adamagemult; t1poidamage = apoidamage;
t1poidamagemult = apoidamagemult; t1poi = apoi; t1poimult = apoimult;

t2mhp = bmhp; t2hp = bhp; t2mmp = bmmp; t2mp = bmp; t2ult = bult;
t2atk = batk; t2def = bdef; t2mag = bmag; t2mdf = bmdf; t2luck = bluck;
t2maxammo = bmaxammo; t2ammo = bammo; t2reload = breload; t2gunatk = bgunatk;
t2damage = bdamage; t2damagemult = bdamagemult; t2poidamage = bpoidamage;
t2poidamagemult = bpoidamagemult; t2poi = bpoi; t2poimult = bpoimult;
}

public void bbeforeattack()
{
t2mhp = amhp; t2hp = ahp; t2mmp = ammp; t2mp = amp; t2ult = ault;
t2atk = aatk; t2def = adef; t2mag = amag; t2mdf = amdf; t2luck = aluck;
t2maxammo = amaxammo; t2ammo = aammo; t2reload = areload; t2gunatk = agunatk;
t2damage = adamage; t2damagemult = adamagemult; t2poidamage = apoidamage;
t2poidamagemult = apoidamagemult; t2poi = apoi; t2poimult = apoimult;

t1mhp = bmhp; t1hp = bhp; t1mmp = bmmp; t1mp = bmp; t1ult = bult;
t1atk = batk; t1def = bdef; t1mag = bmag; t1mdf = bmdf; t1luck = bluck;
t1maxammo = bmaxammo; t1ammo = bammo; t1reload = breload; t1gunatk = bgunatk;
t1damage = bdamage; t1damagemult = bdamagemult; t1poidamage = bpoidamage;
t1poidamagemult = bpoidamagemult; t1poi = bpoi; t1poimult = bpoimult;

}

public void attack()
{
t2damage = (t1atk * 2 + Math.random()*t1atk) - t2def;

}

public void knightskilla()
{
t1atk = t1atk + knightskillavalue;
t1mp = t1mp - knightskillacost;
}

public void knightskillb()
{
t1poi = t1poi - knightskillbvalue;
t1mp = t1mp - knightskillbcost;
}

public void knightskillc()
{
t1mdf = t1mdf + knightskillcvalue;
t1mp = t1mp - knightskillccost;
}

public void knightskilld1()
{
t2damage = t1atk * 2;
t1mp = t1mp - knightskilld1cost;
}

public void knightskilld2()
{
t1heal = t1heal + (Math.random()*t1luck*0.5*t1mag + 3 * t1mag);
t1mp = t1mp - knightskilld2cost;

}

public void knightskilld3()
{
t1atk = t1atk + (t1mp/25);
t1def = t1def + (t1mp/25);
t1mag = t1mag + (t1mp/25);
t1mdf = t1mdf + (t1mp/25);
t1mp = 0;
}

public void knightskillult1()
{
t1def = t1def + 60;
t1ult = t1ult - knightskillult1cost;
}

public void knightskillult2()
{
t2damage = (t1mhp-t1hp)/400 - t2def;
t1ult = t1ult - knightskillult2cost;
}

public void priestskilla()
{
t1heal = t1heal * t1healmult;
t1mp = t1mp - priestskillacost;
}

public void priestskillb()
{
t1def = t1def + priestskillbvalue;
t1mdf = t1mdf + priestskillbvalue;

t1mp = t1mp - priestskillbcost;
}

public void priestskillc()
{
t2damage = t1mag*2 - t2mdf;
t1mp = t1mp - priestskillccost;
}

public void priestskilld1()
{
t1heal = t1mp * priestskilld1value;
t1mp = 0;
}

public void priestskilld2()
{
t1heal = priestskilld2value;
t1mp = t1mp - priestskilld2cost;

}

public void priestskilld3()
{
t2poi = t2poi + priestskilld3value;
t1mp = t1mp - priestskilld3cost;
}

public void priestskillult1()
{
if (t1dodge<3) {t1dodge = 3;}
t1ult = t1ult - priestskillult1cost;
}

public void priestskillult2()
{
t1atk = t1atk + priestskillult2value;
t1ult = t1ult - priestskillult2cost;
}

// Ende Methoden
}

Deck List

Amulet
Card Cost Quantity
Blood MoonAmulet - Tempest of the Gods
Unevolved
Countdown (4)
Vengeance is active for you even when your leader's defense is more than 10.
3 x 3