Commit 97dbff02 authored by Sofia Aicha Delijaj's avatar Sofia Aicha Delijaj
Browse files

cleaning up

parent 4e3fae91
......@@ -11,9 +11,6 @@ export class BattleComponent implements OnInit {
maxHealth = 100;
curHealthSelf = 100;
curHealthOpp = 100;
damage = 0;
maTeam: any = [];
saTeam: any = [];
pseudo: string;
uid: any;
log: boolean;
......@@ -32,14 +29,6 @@ export class BattleComponent implements OnInit {
constructor(private httpClient: HttpClient) { }
teams(arg, id){
if(id == this.uid){
this.maTeam.push(arg)
} else {
this.saTeam.push(arg)
}
}
typeAdv(){
this.httpClient.post("http://localhost:3000/geteff", { typeNous: this.typeMoi, typeEux: this.typeToi}, {responseType: 'json', withCredentials: true}).subscribe((res:any) => (this.calculeDmg(res.body[0].damage_factor)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment