private void onHitPaddle(GameObject ball, Collider2D paddle) { if (Random.value <= 0.1f) { shadowBalls.Add(ShadowBall.CreateShadowBall(new Vector2(ball.transform.position.x, ball.transform.position.y + UnityEngine.Random.Range(-1.2f, 1.2f)))); } }
public void GhostTypePokemonShouldTakeDamageFromSpecialAttack() { IPokemon ghostTypePokemon = PokemonFactory.CreatePokemon <Gengar>(); IMove move = new ShadowBall(); Assert.False(TypeComparer.PokemonTypeDoesNotMakeContactWithMove(ghostTypePokemon?.Types, move)); }
public override void Activate(Ball ball, Player playerPaddle) { base.Activate(ball, playerPaddle); ball.OnHitPaddle += this.onHitPaddle; shadowBalls.Add(ShadowBall.CreateShadowBall(new Vector2(ball.transform.position.x, ball.transform.position.y + UnityEngine.Random.Range(-1.2f, 1.2f)))); LevelsToLast = 1; }
public Alakazam(double health, string status) { name = "Alakazam"; type1 = new Psychic(); estimatedSpeed = 372; estimatedHealth = 251; estimatedAttack = 122; estimatedDefense = 127; estimatedSpAttk = 369; estimatedSpDef = 226; move1 = new PsychicA(); move2 = new ShadowBall(); move3 = new FocusBlast(); move4 = new DazzlingGleam(); Initialize(name, health, status); item = "Life Orb"; }