Double melee attack issue


  • SUN

    Previously (in January) it was possible to apply a double melee attack -- 60 hits per 1 ATTACK body part -- with this code:

    ```

    if(creep.pos.isNearTo(structure)){
        creep.attack(structure)//attack
        creep.move(creep.pos.getDirectionTo(structure.pos))//double attack
    }

    ```

    I've rated this feature as a side-effect of the 'thorns damage' and have used it to crack a powerBank with a single creep, but...

    But today it doesn't work this way:

    • "double attack" applied to a wall results as a single(30 hits per tick per 1*ATTACK bodypart)
    • "double attack" applied to a powerBank gives a random result: 30 or 60 hits per 1*ATTACK by chance.

    Would you please clarify: was it (i mean: double melee attack) a bug, fixed by you recently? Or it is an intended behaviour that doesn't work now by mistake and will be fixed back soon?

     


  • SUN

    @DEVS, I would appreciate the feedback,
    cause my old power hunting code dosn't work now,
    and I don't know what powerBank attack ratio should be used:
     - single (30 damage per [ATTACK] per tick), as it is documented
     - random (~45 damage), as it is now
     - or double (60 damage), as it was in January

    Should I wait for the bugfix or make a new power hunting code?


  • Dev Team

    Yes, this was a bug which is fixed now. Regarding attacking Power Banks it could also be a bug (another one), please report.