wServer.realm.entities.Player.HitByProjectile C# (CSharp) 메소드

HitByProjectile() 공개 메소드

public HitByProjectile ( wServer.realm.entities.Projectile projectile, RealmTime time ) : bool
projectile wServer.realm.entities.Projectile
time RealmTime
리턴 bool
        public override bool HitByProjectile(Projectile projectile, RealmTime time)
        {
            if (projectile.ProjectileOwner is Player ||
                HasConditionEffect(ConditionEffects.Paused) ||
                HasConditionEffect(ConditionEffects.Stasis) ||
                HasConditionEffect(ConditionEffects.Invincible))
                return false;

            return base.HitByProjectile(projectile, time);
        }