From ed05b2bc4ff6e03130eb01d635aafae1f006303a Mon Sep 17 00:00:00 2001 From: sadraheydari Date: Tue, 7 May 2019 23:01:05 +0430 Subject: [PATCH] battle update --- Files/Data/Accounts.json | 2 +- src/control/BattleHandler.java | 22 ++++++--- src/control/BattleMenuHandler.java | 72 ++++++++++++++++++++---------- src/model/game/Player.java | 12 +++-- src/model/other/Account.java | 4 +- src/view/BattleScreen.java | 15 ++++++- 6 files changed, 88 insertions(+), 39 deletions(-) diff --git a/Files/Data/Accounts.json b/Files/Data/Accounts.json index 5c93dda..50e24e2 100644 --- a/Files/Data/Accounts.json +++ b/Files/Data/Accounts.json @@ -1 +1 @@ -[{"username":"test","password":"123456789","collection":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"ej|a|"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~hvky"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"allDecks":[{"name":"main","cards":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"vyyat"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"{ax~o"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"oly|p"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"z}fkh"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"ogstf"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"fltzw"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"s{sdy"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"r}q|s"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~}vgg"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"rkgng"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~eocd"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"jgu|e"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"puewd"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"vn|lt"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"byjme"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"|lrex"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"yyune"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"pp|pj"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"ba|i~"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gvy{p"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"hero":{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"vyyat"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}}],"matchHistory":[],"mainDeck":{"name":"main","cards":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"vyyat"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"{ax~o"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"oly|p"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"z}fkh"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"ogstf"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"fltzw"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"s{sdy"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"r}q|s"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~}vgg"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"rkgng"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~eocd"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"jgu|e"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"puewd"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"vn|lt"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"byjme"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"|lrex"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"yyune"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"pp|pj"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"ba|i~"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gvy{p"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"hero":{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"vyyat"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}},"daric":6500},{"username":"erfan","password":"e","collection":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"ldcmb"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"v{wzq"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"{ejde"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"}],"allSpells":[],"allItems":[]},"allDecks":[{"name":"main","cards":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"u{xsu"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"olenn"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"ix{fo"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"qggsv"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"cpmtb"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"qlcjn"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lbcat"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"~q~kk"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"x}ipq"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lhlol"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"fmznw"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gxxyb"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"vetb{"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"riqsv"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"tqf|u"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~j{se"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"mzrkz"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gadgl"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"zkih|"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"rbqhk"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"hero":{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"u{xsu"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}}],"matchHistory":[],"mainDeck":{"name":"main","cards":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"u{xsu"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"olenn"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"ix{fo"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"qggsv"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"cpmtb"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"qlcjn"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lbcat"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"~q~kk"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"x}ipq"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lhlol"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"fmznw"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gxxyb"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"vetb{"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"riqsv"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"tqf|u"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~j{se"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"mzrkz"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gadgl"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"zkih|"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"rbqhk"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"hero":{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"u{xsu"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}},"daric":6050}] \ No newline at end of file +[{"username":"test","password":"123456789","collection":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"ej|a|"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~hvky"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"allDecks":[{"name":"main","cards":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"vyyat"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"{ax~o"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"oly|p"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"z}fkh"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"ogstf"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"fltzw"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"s{sdy"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"r}q|s"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~}vgg"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"rkgng"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~eocd"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"jgu|e"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"puewd"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"vn|lt"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"byjme"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"|lrex"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"yyune"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"pp|pj"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"ba|i~"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gvy{p"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"hero":{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"vyyat"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}}],"matchHistory":[],"mainDeck":{"name":"main","cards":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"vyyat"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"{ax~o"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"oly|p"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"z}fkh"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"ogstf"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"fltzw"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"s{sdy"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"r}q|s"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~}vgg"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"rkgng"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~eocd"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"jgu|e"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"puewd"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"vn|lt"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"byjme"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"|lrex"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"yyune"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"pp|pj"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"ba|i~"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gvy{p"},"name":"Iraj","price":500,"neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"hero":{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"vyyat"},"name":"Rostam","price":8000,"neededManaToPut":0,"description":"None","type":"HERO"}},"daric":6500},{"username":"erfan","password":"e","collection":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"ldcmb"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"v{wzq"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"{ejde"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"}],"allSpells":[],"allItems":[]},"allDecks":[{"name":"main","cards":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"u{xsu"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"olenn"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"ix{fo"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"qggsv"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"cpmtb"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"qlcjn"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lbcat"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"~q~kk"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"x}ipq"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lhlol"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"fmznw"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gxxyb"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"vetb{"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"riqsv"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"tqf|u"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~j{se"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"mzrkz"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gadgl"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"zkih|"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"rbqhk"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"hero":{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"u{xsu"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}}],"matchHistory":[],"mainDeck":{"name":"main","cards":{"allHeroes":[{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"u{xsu"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}],"allMinions":[{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"olenn"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"ix{fo"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"qggsv"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"cpmtb"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"qlcjn"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lbcat"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"~q~kk"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"x}ipq"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lhlol"},"name":"Bahman","price":450,"userName":"erfan","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"fmznw"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gxxyb"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"vetb{"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"riqsv"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"tqf|u"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"~j{se"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"mzrkz"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"gadgl"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"zkih|"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"},{"mana":4,"haveDeathCurse":false,"hp":6,"ap":20,"ar":3,"attackType":"RANGED","buffs":[],"isStunned":false,"isDisarmed":false,"number":33,"ID":{"value":"rbqhk"},"name":"Iraj","price":500,"userName":"erfan","neededManaToPut":4,"description":"None","type":"MINION"}],"allSpells":[],"allItems":[]},"hero":{"mp":0,"coolDown":0,"hp":55,"ap":7,"ar":4,"attackType":"HYBRID","buffs":[],"isStunned":false,"isDisarmed":false,"number":10,"ID":{"value":"u{xsu"},"name":"Rostam","price":8000,"userName":"erfan","neededManaToPut":0,"description":"None","type":"HERO"}},"daric":6050},{"username":"sadra","password":"s","collection":{"allHeroes":[{"mp":3,"coolDown":8,"hp":50,"ap":4,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":2,"ID":{"value":"wv~fg"},"name":"Simorgh","price":9000,"userName":"sadra","neededManaToPut":0,"description":"Make 8 cell around firable and apply holy buff on himself for 2 round","type":"HERO"}],"allMinions":[{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"uwryw"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"}],"allSpells":[{"mana":1,"target":"one enemy","number":4,"ID":{"value":"~kmlh"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"}],"allItems":[{"itemType":"USABLE","number":1,"ID":{"value":"eoyws"},"name":"WisdomCrown","price":300,"userName":"sadra","neededManaToPut":0,"description":"increasing mana from roand 3 onwards","type":"ITEM"}]},"allDecks":[{"name":"main","cards":{"allHeroes":[{"mp":3,"coolDown":8,"hp":50,"ap":4,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":2,"ID":{"value":"inykb"},"name":"Simorgh","price":9000,"userName":"sadra","neededManaToPut":0,"description":"Make 8 cell around firable and apply holy buff on himself for 2 round","type":"HERO"}],"allMinions":[{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"xb|ff"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"rk|yh"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lieid"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"x{ddc"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"ctwyl"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"zwesp"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"m{ggx"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"miye{"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"anbbi"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"szszz"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"}],"allSpells":[{"mana":1,"target":"one enemy","number":4,"ID":{"value":"feum~"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"{~fja"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"nbxp|"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"m|v|p"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"qovid"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"sb|ia"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"aedru"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"~{ihv"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"}],"allItems":[{"itemType":"USABLE","number":1,"ID":{"value":"vzkxp"},"name":"WisdomCrown","price":300,"userName":"sadra","neededManaToPut":0,"description":"increasing mana from roand 3 onwards","type":"ITEM"}]},"hero":{"mp":3,"coolDown":8,"hp":50,"ap":4,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":2,"ID":{"value":"inykb"},"name":"Simorgh","price":9000,"userName":"sadra","neededManaToPut":0,"description":"Make 8 cell around firable and apply holy buff on himself for 2 round","type":"HERO"},"item":{"itemType":"USABLE","number":1,"ID":{"value":"vzkxp"},"name":"WisdomCrown","price":300,"userName":"sadra","neededManaToPut":0,"description":"increasing mana from roand 3 onwards","type":"ITEM"}}],"matchHistory":[],"mainDeck":{"name":"main","cards":{"allHeroes":[{"mp":3,"coolDown":8,"hp":50,"ap":4,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":2,"ID":{"value":"inykb"},"name":"Simorgh","price":9000,"userName":"sadra","neededManaToPut":0,"description":"Make 8 cell around firable and apply holy buff on himself for 2 round","type":"HERO"}],"allMinions":[{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"xb|ff"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"rk|yh"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"lieid"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"x{ddc"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"ctwyl"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"zwesp"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"m{ggx"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"miye{"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"anbbi"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"},{"mana":8,"spTime":"ON_SPAWN","haveDeathCurse":false,"hp":16,"ap":9,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":31,"ID":{"value":"szszz"},"name":"Bahman","price":450,"userName":"sadra","neededManaToPut":8,"description":"Deals 16 damage to a random enemy minion","type":"MINION"}],"allSpells":[{"mana":1,"target":"one enemy","number":4,"ID":{"value":"feum~"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"{~fja"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"nbxp|"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"m|v|p"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"qovid"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"sb|ia"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"aedru"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"},{"mana":1,"target":"one enemy","number":4,"ID":{"value":"~{ihv"},"name":"Fireball","price":400,"userName":"sadra","neededManaToPut":1,"description":"hit 4 unit to one enemy","type":"SPELL"}],"allItems":[{"itemType":"USABLE","number":1,"ID":{"value":"vzkxp"},"name":"WisdomCrown","price":300,"userName":"sadra","neededManaToPut":0,"description":"increasing mana from roand 3 onwards","type":"ITEM"}]},"hero":{"mp":3,"coolDown":8,"hp":50,"ap":4,"ar":0,"attackType":"MELEE","buffs":[],"isStunned":false,"isDisarmed":false,"number":2,"ID":{"value":"inykb"},"name":"Simorgh","price":9000,"userName":"sadra","neededManaToPut":0,"description":"Make 8 cell around firable and apply holy buff on himself for 2 round","type":"HERO"},"item":{"itemType":"USABLE","number":1,"ID":{"value":"vzkxp"},"name":"WisdomCrown","price":300,"userName":"sadra","neededManaToPut":0,"description":"increasing mana from roand 3 onwards","type":"ITEM"}},"daric":4850}] \ No newline at end of file diff --git a/src/control/BattleHandler.java b/src/control/BattleHandler.java index 1498d74..4b1b7ce 100644 --- a/src/control/BattleHandler.java +++ b/src/control/BattleHandler.java @@ -25,7 +25,7 @@ public void getOrder() { @Override HandlerType handleCommands() { - while (scanner.hasNext() && !game.getWhoIsHisTurn().isEndTurn()) { + while (!game.getWhoIsHisTurn().isEndTurn() && scanner.hasNext()) { command = scanner.nextLine().toLowerCase().trim(); if (command.matches("game info")) { BattleScreen.showGameInfo(); @@ -69,9 +69,9 @@ HandlerType handleCommands() { }else if (command.matches("show hand")) { BattleScreen.showCardArray(game.getWhoIsHisTurn().getHand()); - }else if (command.matches("insert \\w+ in [(]\\d+,\\d+[)]")) { + }else if (command.matches("insert \\w+ in[(]\\d+,\\d+[)]")) { if(!game.getWhoIsHisTurn().moveFromHandToCell(command.split(" ")[1] - ,getCell(command.split(" ")[3]))) { + ,getCell(command.split(" ")[2]))) { BattleScreen.showInvalidCardNameError(); } }else if (command.matches("end turn")) { @@ -85,8 +85,8 @@ HandlerType handleCommands() { }else if (command.matches("show next card")) { BattleScreen.showNextCardFromDeck(); }else if (command.matches("enter graveyard")) { - game.getWhoIsHisTurn().getGraveYard(); - }else if (command.matches("show info \\d+")) { + game.getWhoIsHisTurn().goToGraveYard(); + }else if (command.matches("show info [^ ]")) { if(game.getWhoIsHisTurn().isInGraveYard()) BattleScreen.showCard(game.getWhoIsHisTurn().getGraveYard().find(command.split(" ")[2])); else @@ -98,8 +98,16 @@ HandlerType handleCommands() { BattleScreen.showErrorYourNotInGraveYard(); }else if (command.matches("help")) { whatYouCanDo(game.getWhoIsHisTurn().getAccount()); - } else { - // + } else if (command.matches("exit")) { + if(game.getWhoIsHisTurn().isInGraveYard()) { + game.getWhoIsHisTurn().exitFromGraveYard(); + } + else { + BattleScreen.showErrorYourNotInGraveYard(); + } + } + else { + BattleScreen.showInvalidCommand(); } } return HandlerType.BATTLE; diff --git a/src/control/BattleMenuHandler.java b/src/control/BattleMenuHandler.java index 253f113..5410c85 100644 --- a/src/control/BattleMenuHandler.java +++ b/src/control/BattleMenuHandler.java @@ -33,23 +33,7 @@ HandlerType handleCommands() { while (scanner.hasNext()) { command = scanner.nextLine().toLowerCase().trim(); System.out.println(pageState); - if(command.matches("\\d")) { - if (pageState == PageState.CHOOSE_NUMBER_OF_PLAYERS) { - handleChoosePlayer(); - } else if (pageState == PageState.SINGLE_PLAYER_GAME_TYPES) { - handleSinglePlayer(); - } else if (pageState == PageState.MULTI_PLAYER_GAME_TYPES_FIRST) { - handleMultiPlayerFirstMenu(); - } else if (pageState == PageState.MULTI_PLAYER_GAME_TYPES_SECOND) { - handleMultiPlayerSecondMenu(); - } else if (pageState == PageState.STORY) { - handleStory(); - } else if (pageState == PageState.CUSTOM_FIRST) { - handleCustomFirstPage(); - } else if (pageState == PageState.CUSTOM_SECOND) { - handleCustomSecondPage(); - } - } else if (command.matches("exit")) { + if (command.matches("exit")) { if (pageState == PageState.CHOOSE_NUMBER_OF_PLAYERS) { return MENU; @@ -66,13 +50,33 @@ HandlerType handleCommands() { } else if (pageState == PageState.CUSTOM_SECOND) { gotoCustomMenuFirstPage(); } - } + } else { + if (pageState == PageState.CHOOSE_NUMBER_OF_PLAYERS) { + handleChoosePlayer(); + } else if (pageState == PageState.SINGLE_PLAYER_GAME_TYPES) { + handleSinglePlayer(); + } else if (pageState == PageState.MULTI_PLAYER_GAME_TYPES_FIRST) { + handleMultiPlayerFirstMenu(); + } else if (pageState == PageState.MULTI_PLAYER_GAME_TYPES_SECOND) { + handleMultiPlayerSecondMenu(); + } else if (pageState == PageState.STORY) { + handleStory(); + } else if (pageState == PageState.CUSTOM_FIRST) { + handleCustomFirstPage(); + } else if (pageState == PageState.CUSTOM_SECOND) { + handleCustomSecondPage(); + } + } } return null; } public void setCustomDecks() { - // + if(hero == null) return; + for(Deck deck : customDecks) { + deck.deleteCard(deck.getHero()); + deck.addCard(hero); + } } public void setPlayersSteps() { @@ -80,16 +84,19 @@ public void setPlayersSteps() { Account account = new Account("firstLevelPlayer","1234"); try { Card.makeStroyDeck(1, account); + customDecks.add(account.getAllDecks().get(0)); } catch (Exception e){} firstLevelPlayer = new IntelligentPlayer(account); account = new Account("secondLevelPlayer","1234"); try { Card.makeStroyDeck(2, account); + customDecks.add(account.getAllDecks().get(0)); } catch (Exception e){} secondLevelPlayer = new IntelligentPlayer(account); account = new Account("thirdLevelPlayer","1234"); try { Card.makeStroyDeck(3, account); + customDecks.add(account.getAllDecks().get(0)); } catch (Exception e){} thirdLevelPlayer = new IntelligentPlayer(account); } @@ -144,6 +151,7 @@ private void gotoCustomMenuFirstPage() { private void gotoCustomMenuSecondPage() { pageState = PageState.CUSTOM_SECOND; + setCustomDecks(); BattleScreen.decks(customDecks); } @@ -156,14 +164,14 @@ private void showAllAccounts() { } private void playGame(int numberOfFlags) { - if(!secondAccount.getMainDeck().checkIfValid()) { + if(secondAccount.getMainDeck() == null || !secondAccount.getMainDeck().checkIfValid()) { BattleScreen.showInvalidDeckInMultiPlayer(); return; } Game game = new Game(account,secondAccount,type,numberOfFlags); game.startMatch(); MatchResult result = game.getResults(); - //set reward + System.out.println("this account win: "+game.getWinner().getUsername()); } private void playGame(int numberOfFlags,IntelligentPlayer player) { @@ -257,18 +265,34 @@ private void handleCustomFirstPage() { private void handleCustomSecondPage() { if(command.matches("start game \\d+ 1")) { + if(Integer.parseInt(command.split(" ")[2]) > customDecks.size()) { + BattleScreen.showErrorInvalidDeck(); + } type = GameType.KILL_HERO; - customPlayer.setDeck(customDecks.get(Integer.parseInt(command.split(" ")[2]))); + Account account = new Account("customplayer","1234"); + account.setMainDeck(customDecks.get(Integer.parseInt(command.split(" ")[2]))); + customPlayer = new IntelligentPlayer(account); playGame(0,customPlayer); } else if(command.matches("start game \\d+ 2")) { + if(Integer.parseInt(command.split(" ")[2]) >= customDecks.size()) { + BattleScreen.showErrorInvalidDeck(); + return; + } type = GameType.CAPTURE_THE_FLAG; - customPlayer.setDeck(customDecks.get(Integer.parseInt(command.split(" ")[2]))); + Account account = new Account("customplayer","1234"); + account.setMainDeck(customDecks.get(Integer.parseInt(command.split(" ")[2]))); + customPlayer = new IntelligentPlayer(account); playGame(1,customPlayer); } else if(command.matches("start game \\d+ 3 \\d+")) { + if(Integer.parseInt(command.split(" ")[2]) > customDecks.size()) { + BattleScreen.showErrorInvalidDeck(); + } type = GameType.ROLLUP_FLAGS; - customPlayer.setDeck(customDecks.get(Integer.parseInt(command.split(" ")[2]))); + Account account = new Account("customplayer","1234"); + account.setMainDeck(customDecks.get(Integer.parseInt(command.split(" ")[2]))); + customPlayer = new IntelligentPlayer(account); playGame(Integer.parseInt(command.split(" ")[4]),customPlayer); } diff --git a/src/model/game/Player.java b/src/model/game/Player.java index ba70647..0a014b7 100644 --- a/src/model/game/Player.java +++ b/src/model/game/Player.java @@ -27,7 +27,7 @@ public class Player { protected boolean heroKilled = false; protected Hero hero; protected Cell selectedCardPlace; - protected boolean InGraveYard = false; + protected boolean inGraveYard = false; private CardsArray collectibleItem = new CardsArray(); private Item usableItem; protected Cell selectedCellToPutFromHand; @@ -73,6 +73,10 @@ public CardsArray getGraveYard() { return graveYard; } + public void exitFromGraveYard() { + inGraveYard = false; + } + public CardsArray getMovedCardsInThisTurn() { return movedCardsInThisTurn; } @@ -407,11 +411,11 @@ public Army getNearestEnemy(Cell cell) { } public void goToGraveYard() { - InGraveYard = true; + inGraveYard = true; } public void ExitFromGraveYard() { - InGraveYard = false; + inGraveYard = false; } public CardsArray getFriendsAround(Cell cell) { @@ -425,7 +429,7 @@ public CardsArray getEnemiesInDistance2(Cell cell) { } public boolean isInGraveYard() { - return InGraveYard; + return inGraveYard; } public Cell getOneCell() { diff --git a/src/model/other/Account.java b/src/model/other/Account.java index 2e0f439..179ef1c 100644 --- a/src/model/other/Account.java +++ b/src/model/other/Account.java @@ -62,7 +62,9 @@ public CardsArray getCollection() { public ArrayList getAllDecks() { return allDecks; } - + public void setMainDeck(Deck deck) { + this.mainDeck = deck; + } public Deck findDeck(String name) { for (Deck deck : allDecks) { if (deck.getName().equals(name)) diff --git a/src/view/BattleScreen.java b/src/view/BattleScreen.java index 761516f..66fdd86 100644 --- a/src/view/BattleScreen.java +++ b/src/view/BattleScreen.java @@ -65,7 +65,13 @@ public static void showMinion(Minion minion) { System.out.println("Cost: "+minion.getRace());// System.out.println("Desc:");// } - public static void showSpell(Spell spell) { + public static void showItem(Item item) { + System.out.println("Item: "); + System.out.println("Name:"+item.getName());; + System.out.println("ID:"+item.getID());; + + } + public static void showSpell(Spell spell) { System.out.println("Spell:"); System.out.println("Name: "+spell.getName()); System.out.println("MP: ");// @@ -76,6 +82,7 @@ public static void showCard(Card card) { if(card instanceof Hero) showHero((Hero)card); else if(card instanceof Minion) showMinion((Minion)card); else if(card instanceof Spell) showSpell((Spell)card); + else if(card instanceof Item) showItem((Item)card); } public static void showInvalidCardIdError() { System.out.println("Invalid card id"); @@ -183,7 +190,6 @@ public static void showNotEnoughMana(){ public static void showCollectibles(CardsArray array){ ArrayList items = array.getAllItems(); - System.out.println("Item:"); for (int i = 1; i <= items.size(); ++i) { Item item = items.get(i - 1); @@ -192,4 +198,9 @@ public static void showCollectibles(CardsArray array){ item.getDescription()); } } + public static void showItems() { + for(Item item : game.getWhoIsHisTurn().getCollectibleItem().getAllItems()) { + showCard(item); + } + } }