Пример #1
0
        //decrease time as effect has happened, and adjust the creatures health
        public override void doEffect(GenericPerson creature)
        {
            time--;
            int damage = bonus + amount;
            int burnt  = creature.hurt(damage);

            printInfo(creature, burnt);
        }
Пример #2
0
        public override void doEffect(GenericPerson creature)
        {
            int num = creature.hurt(amount + bonus);

            if (buff.isActive())
            {
                buff.doBuff(creature);
            }
            time--;
            printInfo(creature, num);
        }