New Rule: If a Premier Ball is bought, it actually is gotten for free.
new Rule('If a Premier Ball is bought, it actually is gotten for free')
.when(ledger=>ledger.has('GainItem').with('item.id', premierBallId).ofFlavor('shopping')
.then(ledger=>{
ledger.get(0).forEach(x=>x.flavor = 'freeSample');
})
New Rule: If a Premier Ball is bought, it actually is gotten for free.
We got a Premier Ball for free!