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.)
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)".
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)