Bug Closed · Invalid

[BUG] party conditions not working

#6627 opened by Unknown 11 months ago

Unknownreported this bug

Skills with a Party condition are never executed, regardless of whether the condition is true or false.

Tested with this skills (triggered by MythicRPG - skill{s=Class_Attack_Party;sync=true} ~onAttack):

Class_Attack_Party:
  Skills:
  - setvariable{var=skill.msg;type=STRING;value="trigger:<trigger.name> caster:<caster.type.name> target:<target.name>/<target.entity_type> a=<skill.var.damage-amount> t=<skill.var.damage-type> c=<skill.var.damage-cause>"}
  - delay 0
  - log{m="Class_Attack_Party <skill.var.msg>"} @None
  - log{m="Party YES"} @None ?dungeonparty
  - log{m="Party NO"} @None ?!dungeonparty
  - skill{s=Class_Attack_Party_No}
  - skill{s=Class_Attack_Party_Yes}
  - log{m="Party DONE"} @None

Class_Attack_Party_Yes:
  Conditions:
  - dungeonparty true
  Skills:
  - log{m="Party YES"} @None

Class_Attack_Party_No:
  Conditions:
  - dungeonparty false
  Skills:
  - log{m="Party NO"} @None

results in the following log output:

[15:30:02 INFO]: [MythicMobs] Class_Attack_Party trigger:Pig caster:HugoHuetzel target:Pig/PIG a=8.0 t=UNDEFINED c=ENTITY_ATTACK
[15:30:02 INFO]: [MythicMobs] Party DONE

It should be output either "Party YES" or "Party NO" when testing against true and false (With the pig as target, NO should probably come)

Unknowncommented

Hey there. I think I see the problem here.

The dungeonparty condition compares if two entities are in the same party together. (The caster of the skill and the target of the skill.) If there is either no caster OR no target, this condition doesn't work.

Next, you likely need to specify "TargetConditions" instead of just "Conditions". This is a distinction Mythic Mobs makes where sometimes it doesn't check certain conditions if they aren't used in the right configuration. I know it's confusing, but that's just how Mythic Mobs handles it.

When setting it up as "TriggerConditions" or "TargetConditions", the dungeonparty condition seems to be working correctly.

Sign in to join the discussion.