mwg API
    Preparing search index...

    Interface FieldCondition

    Named conditions the battle itself carries - weather, terrain, a screen like Reflect - rather than any one creature's own StatBlock. Every modifier-shaped thing mwg/actors has (equipment, buffs, status effects) is scoped to one creature; this is the one place a condition can apply to everyone without a game copying it onto every combatant's own stat block by hand. Deliberately just a named, optionally-timed flag set - it does nothing on its own, the same way mwg supplies no move-damage formula: a game reads field.has('rain') itself wherever a formula needs to know.

    import { Field } from '@datamoc/mw_games/battle';

    const field = new Field();
    field.set({ id: 'rain', duration: 5 });

    if (field.has('rain')) console.log('water moves are boosted');
    field.advance(); // one round passes; duration counts down, expiring at 0
    interface FieldCondition {
        duration?: number;
        id: string;
    }
    Index
    duration?: number

    rounds remaining; omit for indefinite, cleared only by an explicit clear

    id: string