Shopkeeper and "on item creation" from Yanfly item core [RESOLVED]

Hello all,
in my game i made a diablo like random loot system using yanfly item core's "on item creation" tag and it works perfectly.

The problem i'm having is that the shopkeepers will sometime (since it's % chance based) sell boosted item at the base item price, i would just like the vendor to only sell the original not boosted item.

Basically is there a way to "turn off" the on item creation effects when in a shop using a script line. because if not i will have to manually change all the notes of every item to include one more condition and that'll take a lonnnng time.
Bump can someone help me?


Edit : Fixed my problem by using a simple if($gameSwitches.value(x)==false){} where x is the switch that 1 activate when the show scene open, this if englobe the rest of the code.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/shopkeeper-and-on-item-creation-from-yanfly-item-core-resolved.120211/