solarus-games / children-of-solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/children-of-solarus
http://www.solarus-games.org
Other
37 stars 8 forks source link

Fix: some pterobat sprites should not hurt the hero #67

Closed Diarandor closed 6 years ago

Diarandor commented 7 years ago

Wings and shadow are invincible sprites for the pterobat. These should not be able of hurting the hero. (I prefer not to use custom entities for the sprites this time. That workaround is very annoying.)

I will fix this when the engine adds the function "enemy:set_sprite_can_attack(sprite, [can_attack])". (Issue https://github.com/solarus-games/solarus/issues/872)

Diarandor commented 6 years ago

This was already fixed with the built-in event "enemy_meta:on_attacking_hero()" and the custom functions "enemy_meta:get/set_sprite_damage(sprite, damage)".