SRD_SummonCore and YEP_X_AnimatedSVEnemies

I am using both plugins and every time a summon ends i get an error "TypeError:Cannot read property 'isEnemy' of null". I figuered out that the yanfly plugin is making this error by turning it on and off. i tried to move the srd plugin up and down in the plugin list but i still get this error. someone knows how to fix this or are those plugins not useable together?
Had the same error:
save this as plugin and add to project, should work:
Code:
Sprite_Animation.prototype.updateSvePosition = function() {
//
  }
this is why all summon functions need to be written specifically for any set of battlescripts/plugins.

Basically a lot of the battlesystem plugins add their own data to the default battlers. This is usually done at battlestart.
If a new battler is summoned without passing through battlestart, then it needs that data to function - or similar errors to the one you're getting appear.

but without knowing what data is required no summon function can work, and that requires making summon plugins custom to any battlesystem.
Overrides like the one above can only help in specific cases, and they are often followed by the next error when the next dataset for another plugin is also missing.
Its working. ty man!!

Original thread: https://forums.rpgmakerweb.com/threads/srd_summoncore-and-yep_x_animatedsvenemies.129085/