mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 07:53:31 +00:00
XML and script fixes for running and pass-through-allies attribute.
This was SVN commit r3854.
This commit is contained in:
@@ -347,9 +347,11 @@ function performAttack( evt )
|
||||
var flank = (evt.target.getAttackDirections()-1)*evt.target.traits.flank_penalty.value;
|
||||
if ( this.getRunState() )
|
||||
{
|
||||
console.write("" + this + " doing a charge attack!");
|
||||
dmg.crush = parseInt(this.actions.attack.charge.damage * this.actions.attack.charge.crush);
|
||||
dmg.hack = parseInt(this.actions.attack.charge.damage * this.actions.attack.charge.hack);
|
||||
dmg.pierce = parseInt(this.actions.attack.charge.damage * this.actions.attack.charge.pierce);
|
||||
this.setRun( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -88,6 +88,8 @@
|
||||
<Regen_Rate>10.0</Regen_Rate>
|
||||
<Decay_Rate>5.0</Decay_Rate>
|
||||
</Run>
|
||||
|
||||
<Pass_Through_Allies>true</Pass_Through_Allies>
|
||||
</Move>
|
||||
|
||||
<Patrol />
|
||||
|
||||
Reference in New Issue
Block a user