Compare commits
	
		
			2 Commits
		
	
	
		
			ffe7406c48
			...
			53bcefb06d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 53bcefb06d | |||
| 058f7088b3 | 
| @ -965,11 +965,11 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = | ||||
| 	//——第二部分:变量定义和初始赋值——
 | ||||
| 	// 每回合怪物对勇士造成的战斗伤害
 | ||||
| 	let per_damage = Math.max(mon_atk - hero_def, 0); | ||||
| 	if (enemyInfo.magic) per_damage = Math.max(mon_atk - hero_mdef, 0); | ||||
| 	//if (enemyInfo.magic) per_damage = Math.max(mon_atk - hero_mdef, 0);
 | ||||
| 
 | ||||
| 	//
 | ||||
| 	let hero_per_damage = Math.max(hero_atk - mon_def, 0); | ||||
| 	if (hero_magic) hero_per_damage = Math.max(hero_atk - mon_mdef, 0); | ||||
| 	//if (hero_magic) hero_per_damage = Math.max(hero_atk - mon_mdef, 0);
 | ||||
| 
 | ||||
| 	let damage = 0, | ||||
| 		hero_turn = 0, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user