Bug: "incombat true" condition

Discussion in 'Bug Reports' started by Tof, Jan 6, 2019.

  1. Tof

    Tof New Member

    Joined:
    Sep 17, 2017
    Messages:
    2
    Likes Received:
    0
    Enter a brief description of what is broken "incombat true" condition

    What version of Minecraft are you using?
    1.12

    What server jar are you using? Spigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? 4.3.2

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    Mythicmobs version: 4.3.2

    Server version: spigot 1.12.2


    Description:
    I think that "incombat true" condition is flawed. It activates a skill only when a mob has a target(Thats how the manual says). However, it will not activate the skill, if the mob hasn't been engaged in combat before(hit or was hit), even if it is chasing after another mob to attack.
    So if the mob is chasing after someone, does it not mean that it has a target? and if the mob does have a target, why doesn't "incombat true" work and activate the skill?

    Example Configurations
    Mob file:

    Yeti1:
    Type: Husk
    AIGoalSelectors:
    - 0 clear
    - 1 meleeattack
    - 2 randomlookaround
    - 3 float
    - 4 opendoors
    - 5 movetowardstarget
    - 6 randomstroll
    - 7 lookatplayers
    AITargetSelectors:
    - 0 clear
    - 1 attacker
    - 2 otherfactionmonsters
    Skills:
    - skill{s=CrushingBlow} ~onTimer:170
    Modules:
    ThreatTable: true

    =====================================
    Skills File:

    CrushingBlow:
    Cooldown: 1
    Conditions:
    - incombat true
    Skills:
    - leap{v=300} @target
    - jump{v=0.6} @self
    - delay 10
    - jump{v=-1000} @self
    - delay 5
    - damage{amount=4} @EntitiesInRadius{r=1}
    - effect:particles{p=explode;amount=2;hS=0.2;vS=0.2} @self
    - effect:particlering{particle=snowballpoof;radius=1;points=16;amount=1;hS=1;vS=0} @self
    - delay 2
    - effect:particlering{particle=snowballpoof;radius=2;points=32;amount=1;hS=1;vS=0} @self
    - damage{amount=3} @EntitiesInRadius{r=5}
    - delay 2
    - effect:particlering{particle=snowballpoof;radius=3;points=64;amount=1;hS=1;vS=0} @self
    - damage{amount=3} @EntitiesInRadius{r=5}
    - delay 2
    - effect:particlering{particle=snowballpoof;radius=4;points=128;amount=1;hS=1;vS=0} @self
    - damage{amount=2} @EntitiesInRadius{r=5}
    - delay 2
    - effect:particlering{particle=snowballpoof;radius=5;points=256;amount=1;hS=1;vS=0} @self
    - damage{amount=2} @EntitiesInRadius{r=5}
     
    #1

Share This Page