How do I link one actor's life to another while an abnormal state is active?

Necromancy, plain and simple.
Raise a dead character with some buffs and debuffs, you know... The good stuff with necromancy.
However, when that happens, how do I kill the "zombie" when the necromancer(technically a handler of sorts?) dies?

Would I put "Call Common Event: Necromancy" in the effects box?
Then run if/else commands in a parallel process?
For example, and A1 is the necromancer, A2&A3 are just the zombies, I guess.

Code:
@>Conditional Branch: [A1] is [Death] Inflicted
  @> Conditional Branch: [A2] is [Necromancy] Inflicted
     @> Change State: [A2], - [Necromancy]
     @> Change State: [A2], + [Death]
    Else
  @> Conditional Branch: [A3] is [Necromancy] Inflicted
     @> Change State: [A3], - [Necromancy]
     @> Change State: [A3], + [Death]

Would that continuously run and kill the zombie once the Necromancer dies? If so, how would I turn that off?
I'm new to common events in combat, so I have no idea how to properly manage using these.

Edit:
I figured out how to do it. You put that code up there ^ in a troop event.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-link-one-actors-life-to-another-while-an-abnormal-state-is-active.78216/