public override void hitCreepWithAuto() { if (!isMoving) { autoOn++; if (isW) { isW = false; creepSelected.takeMagicDamage(WDamage + (int)(AbilityPower + 0.5)); creepSelected.takeDamage(AttackDamage); GameObject explode = Instantiate(WExplosion); explode.transform.position = creepSelected.transform.position; NateHitbox slow = explode.GetComponent <NateHitbox>(); slow.damage = (int)((WDamage + (AbilityPower * 0.5)) / 2); slow.slowPotency = 70; slow.slowTime = 3; slow.player = this; } else { GameObject shot = Instantiate(aaProj); AA_Projectile projectile = shot.GetComponent <AA_Projectile>(); projectile.damage = AttackDamage; shot.transform.position = iceSpawn.transform.position; projectile.creepTarget = creepSelected.gameObject; projectile.player = this; } } }
public override void Q() { Instantiate(iceExplosion, QPos - offset, Quaternion.identity); QHB = iceExplosion.GetComponent <IceExplosion>().hb; QHB.slowPotency = 100 - QSlow; QHB.slowTime = 3; QHB.damage = QDamage + (int)(AbilityPower * 0.55); QHB.p = this; QHB.player = this; }