use of eidolons.ability.effects.oneshot.buff.RemoveBuffEffect in project Eidolons by IDemiurge.
the class WaitEffect method getAbility.
protected Ability getAbility(Ref ref) {
Effect effect = new Effects(new RemoveBuffEffect(getBuffName()));
Ability ability = new ActiveAbility(new FixedTargeting(KEYS.SOURCE), effect);
ability.setRef(ref);
return ability;
}
use of eidolons.ability.effects.oneshot.buff.RemoveBuffEffect in project Eidolons by IDemiurge.
the class UnconsciousRule method getWakeUpEffect.
private static Effect getWakeUpEffect(Unit unit) {
Effects e = new Effects();
e.add(new ModifyValueEffect(PARAMS.C_N_OF_ACTIONS, MOD.MODIFY_BY_CONST, "-" + AP_PENALTY));
e.add(new ModifyValueEffect(DC_Engine.isAtbMode() ? PARAMS.C_INITIATIVE : PARAMS.C_INITIATIVE_BONUS, MOD.MODIFY_BY_CONST, "-" + INITIATIVE_PENALTY));
e.add(new RemoveBuffEffect("Unconscious"));
e.setRef(Ref.getSelfTargetingRefCopy(unit));
return e;
}
use of eidolons.ability.effects.oneshot.buff.RemoveBuffEffect in project Eidolons by IDemiurge.
the class ClaimRule method initEffects.
@Override
public void initEffects() {
Conditions conditions = new Conditions();
conditions.add(new NumericCondition("0", CLAIM_COUNTERS));
Conditions conditions2 = new Conditions();
conditions2.add(new OwnershipCondition(KEYS.EVENT_TARGET.name(), true));
conditions2.add(nOfCounters);
RemoveBuffEffect removeBuffEffect = new RemoveBuffEffect(buffName);
Effect effect = new OwnershipChangeEffect(false);
AddBuffEffect addBuffEffect = new AddBuffEffect(new NumericCondition("{BASIS_CLAIM_COUNTERS}", "0"), buffName, effect);
effects = new IfElseEffect(removeBuffEffect, conditions, new ConditionalEffect(conditions2, addBuffEffect));
}
Aggregations