Closed naydef closed 1 month ago
Instead of doing the changes above, I guess FF2R_MakeBoss
should throw an error if it gets called for the caller boss inside FF2R_OnAbility
. Basically this should throw meaningful error:
public void FF2R_OnAbility(int client, const char[] ability, AbilityData cfg)
{
if(StrEqual(ability, "some_name"))
{
FF2R_MakeBoss(client, some_boss_cfg, 3);
}
}
Basically if you make a boss call
rage_cloneattack
on itself (aka he gets converted to a boss from his own config), then FF2 will generate invalid handle error like this one:Fix being in
Bosses_CreateFromConfig
:And yea, too lazy to keep my official FF2R fork updated with nec changes as well as doing PRs...