Closed DreadKnight closed 8 years ago
I'd like to take this on as the test.
@cxong Alright, go for it :)
Does baseball baton knock swine thug back, its enemy back, or both?
Note that spa mud's trigger is onCreatureMove, so if mud bath is cast on self, the ability won't trigger. Is this ok? Or is there a trigger that is more appropriate?
Just got back home. Baseball baton only knocks back enemies.
Regarding the trigger, there should be one to make the passive trigger instantly if there isn't one already. There's a feature so that when an unit can't move anymore and can't use any abilities so you're being helped out by having some "skip turn" text above the unit and you can click on it to skip directly, so it might be using a more proper trigger perhaps; otherwise this stuff could result in a new issue.
Thanks for the info; the mud bath ability exposed a number of other issues, I'll just note them but for the purposes of this issue, I'd like to leave them there.
Just to clarify, about the mud slide upgrade, if a creature is big (size > 1) then does it need to be completely over mud hexes to slide, or is at least one enough?
I've figured out how to do the baseball baton knockback, but note that because the ability uses queryCreature(), you cannot control the knockback direction for size > 1 creatures based on which part of the creature was clicked. If this is wanted, I think it should go into a separate issue - possibly as an extension to how queryCreature works.
Pff, quite problematic. I'm not too happy when this kind of stuff happens for an ability, as I like to keep things simpler hmm.
Just to clarify, about the mud slide upgrade, if a creature is big (size > 1) then does it need to be completely over mud hexes to slide, or is at least one enough?
Regarding bigger units, they would probably need to at least land will all their hexagons over mud baths after the knockback.
I've figured out how to do the baseball baton knockback, but note that because the ability uses queryCreature(), you cannot control the knockback direction for size > 1 creatures based on which part of the creature was clicked. If this is wanted, I think it should go into a separate issue - possibly as an extension to how queryCreature works.
Understood, will see in testing hmm.
Thanks; I've updated the PR, also note that for bigger creatures, unless they are already partially over mud baths, then knocking them forward/backward into mud baths won't cause sliding.
Ok, here's the report:
Make sure you pull first before making any more changes xD Also, I'm around here most of the time https://gitter.im/FreezingMoon/AncientBeast
In the latest PR
Gonna test soon. Code looks alright besides that duplication I mentioned. Where is the knockback speed variable defined exactly?
Ok, see latest PR
Thanks, in latest PR:
hideNonTarget
argumentIf you've found other bugs please let me know
I've tested it and looks good. Only one thing that could be added in the log, another message saying what actually happened to the target unit after being hit by Ground Ball, something similar to what Uncle Fungus does (top 2 messages):
Oh, and for the Spa Goggles passive as well, less confusion that way. The info should be single a line.
Oh, and for the Spa Goggles passive as well, less confusion that way. The info should be single a line.
Don't forget that one xD @cxong
Sorry, I should read more carefully :sweat:
Had a feeling that might happen. Single text right after images kinda has that effect.
Alright, good job, moving along now :D
I've added upgrades to the abilities and did a bit of tweaks the old abilities themselves https://github.com/FreezingMoon/AncientBeast/blob/master/development/src/abilities/Swine%20Thug.js Keep in mind as reference that currently only Abolished from that folder has the upgrades enabled.
I've added a simple self explanatory upgrade to the ability.
The knockback needs to be added to the ability. Regarding the upgrade, the target unit will get moved across all the aligned mud tiles in the direction hit (inline or diagonally), the target unit stopping near an obstacle or on a non-muddy tile.
The upgrade will cause hits to indefinitely debuff the target, this debuff stacks.
Mud Bath is now usable on self as well. When the upgrade occurs, self use will require way less energy, so the ability should be usable when Swine Target has at least 10 energy points, but it will only highlight himself as the viable target (clicking anywhere else will cancel the ability, as expected).