MegaGlest Forum

MegaGlest => Bug reports => Topic started by: Ishmaru on 13 April 2011, 01:52:54

Title: Bug Units always do dammage even with attack of 0
Post by: Ishmaru on 13 April 2011, 01:52:54
Hey another bug i found is that even with an attack of 0 units will always do at least 1 damage per cycle.
Title: Re: Bug Units always do dammage even with attack of 0
Post by: softcoder on 13 April 2011, 01:53:44
This is hard coded to ensure every attack results in a minimum of 1 damage. Not sure if this is a bug or feature :)
Title: Re: Bug Units always do dammage even with attack of 0
Post by: Zoythrus on 13 April 2011, 02:06:06
does that affect negative damage? or will the attacker heal its target?
Title: Re: Bug Units always do dammage even with attack of 0
Post by: Ishmaru on 13 April 2011, 03:06:48
This is hard coded to ensure every attack results in a minimum of 1 damage. Not sure if this is a bug or feature :)

I see... Well can there be any way to have observer or spy units that can move yet stay in position without attacking? Normally they will run away.
Title: Re: Bug Units always do dammage even with attack of 0
Post by: ElimiNator on 13 April 2011, 03:15:44
This is hard coded to ensure every attack results in a minimum of 1 damage. Not sure if this is a bug or feature :)

I see... Well can there be any way to have observer or spy units that can move yet stay in position without attacking? Normally they will run away.
Just give them a attack skill but not a command, than they cannot attack but they will not run away.

does that affect negative damage? or will the attacker heal its target?
Nope I wanted it to heal but 1 damage is the minim.
Title: Re: Bug Units always do dammage even with attack of 0
Post by: John.d.h on 13 April 2011, 05:18:37
I see... Well can there be any way to have observer or spy units that can move yet stay in position without attacking? Normally they will run away.
Just give them a attack skill but not a command, than they cannot attack but they will not run away.
It's much more elegantly handled in GAE, so look for that after the merge.  Units with attacks can be toggled to automatically attack or not, and units without attacks (or with auto-attack turned off) can be toggled to automatically flee or not.
Title: Re: Bug Units always do dammage even with attack of 0
Post by: Omega on 15 April 2011, 22:31:04
It would be nice if there was a way to toggle this minimum off, where any *attack* dealing zero or less damage would do nothing at all (though any effects the attack may have, in GAE, would still work), though healing should be a different skill. It wouldn't make sense for a very weak unit to attack something with very high defense and heal them.