clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

vulnerable_element doesn't apply correctly to the first element in the list #891

Closed makrohn closed 11 years ago

makrohn commented 11 years ago

So if you're vulnerable_fire=0, and fire is the first element in the elements.txt file, you'll still take full damage (at least while transformed).

dorkster commented 11 years ago

This was a tricky one. We were using if (powers[power_index].trait_elemental) as shorthand. The thing is, we start elements at 0 now, so that statement would be false for the first element.