/* * Returns the time of the next auto-attack * */ public float autoAttack(MinionScript enemy) { float damageAmount = getWeaponDamage(); if(finalHourActive){ damageAmount *= 1.4f; awardHealth (damageAmount * .5f); } a.Play("Attack" + (((int)(Random.value * 2)) + 1)); enemy.damage(damageAmount); return Time.time + WeaponSpeed; }
/* * Returns the time of the next auto-attack * */ public float autoAttack(MinionScript enemy) { a.Play("Attack" + (((int)(Random.value * 3)) + 1)); enemy.damage(WeaponDamage); return Time.time + WeaponSpeed; }