702.41. Modular 702.41a Modular represents both a static ability and a triggered ability. "Modular N" means "This permanent enters the battlefield with N +1/+1 counters on it" and "When this permanent is put into a graveyard from the battlefield, you may put a +1/+1 counter on target artifact creature for each +1/+1 counter on this permanent." 702.41b If a creature has multiple instances of modular, each one works separately.
@author Loki, LevelX2
// Sacrifice an artifact: Put a +1/+1 counter on Arcbound Ravager.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new SacrificeTargetCost(new TargetControlledPermanent(filter))));
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.