Search in sources :

Example 1 with Interruptable

use of main.ability.Interruptable in project Eidolons by IDemiurge.

the class InterruptEffect method applyThis.

@Override
public boolean applyThis() {
    // }
    if (ref.getEvent() == null) {
        return false;
    }
    Ref REF = ref.getEvent().getRef();
    Interruptable i = REF.getEffect();
    // if (OBJ_REF != null) {
    i = (Interruptable) REF.getObj(KEYS.ACTIVE);
    // }
    if (i == null) {
        return false;
    }
    i.setInterrupted(true);
    return true;
}
Also used : Ref(main.entity.Ref) Interruptable(main.ability.Interruptable)

Aggregations

Interruptable (main.ability.Interruptable)1 Ref (main.entity.Ref)1