Abilities: - area of effect ability with impact event/chain reaction type added - melee slash timing bugfix - melee slash VFX added - blizzard (second mage ability) added - holy circle (ultimate priest ability) added - consecration (ultimate knight ability) added - whirling axes (second barbarian ability) added - glacial bomb (ultimate mage ability) added - ice shard (first mage ability) added Others: - aoe location snapshot on cast mechanic added - reduced realtime shadows on rifthunters inn
32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using Photon.Pun;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class NetworkMultipleProjectileChainReaction : NetworkAbilityChainReaction
|
|
{
|
|
public List<NetworkedProjectile> projectiles = new List<NetworkedProjectile>();
|
|
|
|
ProjectileAbility projectileAbility;
|
|
|
|
public override void ExecuteAbilityChainReaction(PhotonView owner, Taggable ownerTag)
|
|
{
|
|
projectileAbility = (ProjectileAbility)ability;
|
|
foreach (NetworkedProjectile projectile in projectiles)
|
|
{
|
|
|
|
projectile.speed = projectileAbility.projectileSpeed;
|
|
projectile.owner = owner;
|
|
projectile.ownerTag = ownerTag;
|
|
projectile.ability = projectileAbility;
|
|
projectile.lifeSpan = projectileAbility.lifeSpan;
|
|
projectile.canPierce = projectileAbility.canPierce;
|
|
projectile.canHitSelf = projectileAbility.canHitSelf;
|
|
|
|
projectile.gameObject.SetActive(true);
|
|
|
|
projectile.Init();
|
|
}
|
|
}
|
|
}
|