Hum, maybe try with:
$gameParty.members()[slot]._hp = your_value //for an actor. The slots are 0,1,2,3
$gameTroop.members()[slot]._hp = your_value //for an enemy. The slots are 0,1,2,3,4,5
At least within my project that is without any plugin, it works.
Replacing "slot" by whatever index your summoner currently is. And "your_value" by your calculations.
To be clear this will
set the party/troop member hp to "your_value", not add to it. So you'll probably need a few extra steps in your calculations.
Furthermore, should you use it to make an enemy hp drop to 0, the sprite will not disappear.
Edit: I saw your second question: how do I make a common event know who cast the spell... Well, here is the solution:
Code:
var list, i
list = []
i = 0
while (i < $gameParty.size()) {
list.push($gameParty.members()[i].actorId())
i++
}
list.indexOf(BattleManager._subject._actorId) // this will return the index (0,1,2,3) of the caster.
//Calling it anywhere outside battle will crash the game.