//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); }
public override void doEffect(GenericPerson creature) { int num = creature.hurt(amount + bonus); if (buff.isActive()) { buff.doBuff(creature); } time--; printInfo(creature, num); }