Пример #1
0
	public override void Cast (Team myTeam, Team enemyTeam) {
		Debug.Log("I cast magic missile at the darkness!");
		enemyTeam.TakeDamage(damage);

		GameObject cast = Instantiate(castTemplate);
		cast.transform.position = myTeam.gameObject.transform.position;
		cast.GetComponent<SpellSling>().target = enemyTeam.gameObject;
	}
Пример #2
0
	public override void Cast (Team myTeam, Team enemyTeam) {
		Debug.Log("PFFFFFFFTTTTTTTTTTTTTTTTTTTTTTTTTTT. Butts.");
		enemyTeam.TakeDamage(damage);

		GameObject cast = Instantiate(castTemplate);
		cast.transform.position = myTeam.gameObject.transform.position;
		cast.GetComponent<SpellSling>().target = enemyTeam.gameObject;
	}
Пример #3
0
	public override void Cast (Team myTeam, Team enemyTeam) {
		Debug.Log("I HAVE THE SHINIEST MEAT BICYCLE!");
		enemyTeam.TakeDamage(damage);
		myTeam.TakeDamage(damage/2);

		GameObject cast = Instantiate(castTemplate);
		cast.transform.position = myTeam.gameObject.transform.position;
		cast.GetComponent<SpellSling>().target = enemyTeam.gameObject;
	}
Пример #4
0
	public override void Cast(Team myTeam, Team enemyTeam) {
		Debug.Log("BOOM");
		enemyTeam.TakeDamage(damage);
		int killCount = Mathf.Max(enemyTeam.members.Count/10, 1);
		int startIndex = Random.Range(0, enemyTeam.members.Count-(killCount-1));
		foreach (string enemyName in enemyTeam.members.GetRange(startIndex, killCount)) {
			gameObject.GetComponent<GameMaster>().GetPlayerObject(enemyName).GetComponent<Player>().DealDamage(damage);
		}

		GameObject cast = Instantiate(castTemplate);
		cast.transform.position = myTeam.gameObject.transform.position;
		cast.GetComponent<SpellSling>().target = enemyTeam.gameObject;
    }