Dainekoichi's Skill Core Script Add on Request - NO SKILLCORE EXP IF ENEMY BATTLER ESCAPES

Good Morning / Day / Afternoon / Evening everyone.

I have a request for a certain kind of script modification.

I have Dainekoichi's Skill Core system in mind. It allows characters to equip skill cores as an alternative to the traditional skill learning.

http://dainekoichi.blogspot.com/2015/10/rmvxa-skill-core-system_5.html
You can assign specific skillcore EXP for your enemy battlers. But I've tested on an enemy escaping fromt he battle, your actors are victorious but the enemy battlers still gave you skillcore EXP

I was wondering if it was possible to have an add on that would do the following:
,
1. Make it so that enemies that escape from the battle will not award you with their designated skillcore EXP, very much the same as how the default EXP works.

Any help would be greatly appreciated.
Oh, this is the one I added core sorting and "remove all" functions to! One sec, I'll add that in.

Change line 406 of the original skill core script to

Code:
for enemy in $game_troop.dead_members
Thank you so much for this. It's just amazing that one simple change can completely change the way the whole script functions.

Thank you for this. BTW, since we are on this subject:

When you win a battle, a message shows up saying how much Skillcore EXP you earned. However, this even shows up when enemies have no sk exp to give you.

Is it possible to do the following:

1.5. If no skillcore exp is earned at all in the battle, no message for skill core exp will be shown at the end of the battle
any help would be appreciated but please, only if you have some time to spare.

Original thread: https://forums.rpgmakerweb.com/threads/dainekoichis-skill-core-script-add-on-request-no-skillcore-exp-if-enemy-battler-escapes.124446/