コード例 #1
0
        private int PunishTheWeak_Damage_Handler(Targetable sender, Targetable receiver, ref int damageAmount, DamageEffects.DamageType damageType)
        {
            List<Targetable> sortedNonHeroes = getSortedNonHeroes();

            if (receiver.Equals(sortedNonHeroes[0]))
                return 1;
            else
                return -1;
        }