public override void PlayedFunction() { Sc_BattleManager battleManager = GameObject.FindObjectOfType <Sc_BattleManager>(); battleManager.DamageCalc(target: 1, damage: monsterDamage); battleManager.DamageCalc(target: 0, damage: selfDamage); }
public override void PlayedFunction() { Sc_BattleManager battleManager = GameObject.FindObjectOfType <Sc_BattleManager>(); int random = Random.Range(0, 100); if (chanceHitSelf <= random) { battleManager.DamageCalc(target: 1, damage: damage, poison: poison); } else { battleManager.DamageCalc(target: 0, damage: damage, poison: poison); } }
public override void PlayedFunction() { Sc_BattleManager battleManager = GameObject.FindObjectOfType <Sc_BattleManager>(); battleManager.currentRage += rage; if (selfDamage != 0) { battleManager.DamageCalc(target: 0, damage: selfDamage); } }