I tried to use Sword of the Temple Gard powerUp() function in a working level ( Summit Gate ) and it crashed. So I tested it in https://codecombat.com/play/level/usual-day?
// code without powerUp()
hero.moveXY(60, 40);
while(true){
var enemy = hero.findNearestEnemy();
if (enemy && hero.distanceTo(enemy)<15){
// if (!hero.hasEffect("power-up") && hero.isReady("power-up"))
// hero.powerUp();
hero.attack(enemy);
}
}
Only the Temple Guard ability has a “grow” ability, however, it’s really not meant to directly buff the sword in all situations. In multiplayer arenas, the power-up ability is useful in a sense of knocking players away, however some other situations might not.
No, test it yourself anywhere, see the time you defeat an enemy and the health you are losing. It’s a pretty substantial nerf to the weakest type of heroes. And it crashes already done levels.
I’m saying every sword has different powerUp buffs. Some increase attack speed, some increase damage, etc.
And since it’s not a passive ability, why bother using powerUp to specifically “crash” certain levels? You have the option to not use the powerUp, if it ends up making you take more damage, etc, then you can just not use it.
@xython It’s good for medium-health swarms because you can minimalize the DPS taken by having other targets pushed away while you take on one target vs. you against a swarm around you.
With Power-Up:
Damage Taken: 660
I’m almost convinced… Can you show the same situation with a free hero?
And if it works you can restore the previous powerUp() ( without the grow effect ) and rename the new ability as powerKnockBack() or something similar ( let’s follow the basic programming rule: If it ain’t broken, don’t fix it! ) And test all other swords as well…
I wouldn’t say so. powerUp is a specific ability and you always use hero.powerUp() to call it. Scattershot is a bit weird though, it doesn’t have a cooldown (well, there’s a delay between each shot, but there is with attack to) so I wonder what the point of the regular attack is… Ah well it’s very cool nonetheless.