示例#1
0
    void timers()
    {
        if (!canRoundHouse)
        {
            if (roundhouseFireTimer.countDown())
            {
                canRoundHouse = true;
            }
        }


        if (!canElectricFlame)
        {
            if (electricFlameTimer.countDown())
            {
                canElectricFlame = true;
            }
        }


        if (!canFireball)
        {
            if (fireballTimer.countDown())
            {
                canFireball = true;
            }
        }

        if (!canThunderStrike)
        {
            if (thunderStrikeTimer.countDown())
            {
                canThunderStrike = true;
            }
        }

//Dalv spells
        if (!canShockingBody)
        {
            if (shockingBodyTimer.countDown())
            {
                canShockingBody = true;
            }
        }


        if (!canlightningStorm)
        {
            if (lightningStormTimer.countDown())
            {
                canlightningStorm = true;
            }
        }



        if (!canFlameWall)
        {
            if (flameWallTimer.countDown())
            {
                canFlameWall = true;
            }
        }
    }