public SigardaHostofHeronsAbility1(GameState state) { super( state, "Spells and abilities your opponents control can't cause you to sacrifice permanents."); SimpleEventPattern youSacrificePermanents = new SimpleEventPattern(EventType.SACRIFICE_ONE_PERMANENT); youSacrificePermanents.put( EventType.Parameter.CAUSE, ControlledBy.instance(OpponentsOf.instance(You.instance()), Stack.instance())); youSacrificePermanents.put(EventType.Parameter.PERMANENT, Permanents.instance()); youSacrificePermanents.put(EventType.Parameter.PLAYER, You.instance()); ContinuousEffect.Part part = new ContinuousEffect.Part(ContinuousEffectType.PROHIBIT); part.parameters.put( ContinuousEffectType.Parameter.PROHIBITION, Identity.instance(youSacrificePermanents)); this.addEffectPart(part); }