Search in sources :

Example 1 with RollCondition

use of eidolons.ability.conditions.special.RollCondition in project Eidolons by IDemiurge.

the class TrampleRule method initConditions.

@Override
public void initConditions() {
    conditions = new Conditions(// make sure the *source* is correct ref!
    new StdPassiveCondition(UnitEnums.STANDARD_PASSIVES.TRAMPLE, KEYS.EVENT_SOURCE), new AttackCondition(false), new NumericCondition("{source_total_weight}+{Strength}*2", "{event_target_bludgeoning_resistance}/100*{event_target_total_weight}*2+{event_target_Strength}*6"), // reflex roll?
    new RollCondition(GenericEnums.ROLL_TYPES.REFLEX));
    conditions.setFastFailOnCheck(true);
}
Also used : AttackCondition(eidolons.ability.conditions.special.AttackCondition) StdPassiveCondition(eidolons.ability.conditions.shortcut.StdPassiveCondition) NumericCondition(main.elements.conditions.NumericCondition) Conditions(main.elements.conditions.Conditions) RollCondition(eidolons.ability.conditions.special.RollCondition)

Aggregations

StdPassiveCondition (eidolons.ability.conditions.shortcut.StdPassiveCondition)1 AttackCondition (eidolons.ability.conditions.special.AttackCondition)1 RollCondition (eidolons.ability.conditions.special.RollCondition)1 Conditions (main.elements.conditions.Conditions)1 NumericCondition (main.elements.conditions.NumericCondition)1