In the multiplayer:
Can the hero command troops AND call his/her ability in one if statement?
In other words what is meant by only last action happens? What falls under action umbrella?
if (this.health < 50)
{
this.say("Attack!", {target: enemy});
this.warcry();
}
this.say("Defend!", {targetPos: {x: 30, y: 30}}));
this.shield();
What will happen in the function, if hero’s health is 49? The help in commented code implies that only this.shield() will execute with rest of the code ignored.