Exemplo n.º 1
0
    private void HandleVolatile(CardVisual sourceOfDeath)
    {
        int volatileValue = CheckSpecialAttributes(SpecialAttribute.AttributeType.Volatile);

        if (sourceOfDeath.primaryCardType == Constants.CardType.Soul)
        {
            sourceOfDeath.ApplyCombatDamage((int)Constants.CardStats.Health, -volatileValue, photonView.viewID, false);
        }
        else
        {
            CardVisual murderer = Finder.FindCardsOwner(sourceOfDeath);
            murderer.ApplyCombatDamage((int)Constants.CardStats.Health, -volatileValue, photonView.viewID, false);
        }
    }