Good evening!

If I want to know the morale of a Monster in the assist window, I can get the value with:

Code:
myplayer = Turbine.Gameplay.LocalPlayer.GetInstance();
myparty = myplayer:GetParty();
morale = myparty:GetAssistTarget(1):GetTarget():GetMorale();
GetAssistTarget(1) specifies the first player in the assist window, correct?

Well, everything works fine so far but as soon as there is a second player added to the assist window, I get the following error: attempt to index a nil value

Why does everything work if there is only one player in the assist window but if there are more, it suddenly does not work any more?


Thank you in advance!