geckosoft / OpenRA

An open-source implementation of the Red Alert engine using .NET/mono and OpenGL. Runs on Windows, Linux and OSX. Grab the latest at http://open-ra.org Bugs at http://red-bull.ijw.co.nz:3690/OpenRA/
http://open-ra.org
GNU General Public License v3.0
1 stars 0 forks source link

Task : Update the 'Refill' code to use InflictDamage to heal, instead of manipulating the HP directly #31

Closed geckosoft closed 13 years ago

geckosoft commented 13 years ago

See title

geckosoft commented 13 years ago

Fixed. Also added in another check to make sure it doesn't heal the 'Container' by accident.

Avatar.InflictDamage(Avatar, -Avatar.TraitOrDefault<Health>().MaxHP, null);