Closed Chronos-92 closed 7 years ago
Fixed killing NPCs: https://github.com/Chronos-92/Orion-Plus-Game-Engine/commit/c52877ee9cdb4b004e987726efec612912304dc9
Added new problems though, I broke NPC spells as they rely on a method I did not expect them to use. Will look into this.
Fixed knockback and stun spells, as well as calculating magic resistance for skills hitting players.
https://github.com/Chronos-92/Orion-Plus-Game-Engine/commit/f2ff586fde54b6a95c52157e2668bce50eed62a8
Fixed spells not killing players. (Have to revisit some parts of this at some point, I made it work. But didn't rewrite everything.)
https://github.com/Chronos-92/Orion-Plus-Game-Engine/commit/fd5a2fe144de1947094c0a94b3ec9d7e864b91c6
Fixed NPC spells in https://github.com/Chronos-92/Orion-Plus-Game-Engine/commit/21b683dbb24e4fae5c13dce2182e331fab4971e2
Please note that this is not rewritten at all, I've merely made it work with the appropriate methods. (SkillNpc_Effect and SkillPlayer_Effect) rather than PlayerAttackNpc and PlayerAttackPlayer. I'll have to rewrite the entire system at some point, because right now it abuses methods that're not obviously made for it.
Currently, the spell system has the following problems, I'll tick the ones I have resolved and add a comment below to the related commit.