varkor / pokengine

An online Pokémon battle system for the web
http://varkor.com/pokengine/battle/
MIT License
54 stars 11 forks source link

Battle effects should use the same triggering system as abilities and moves #66

Open varkor opened 10 years ago

varkor commented 10 years ago

Currently Battle.triggerEvent has some custom code in place to deal with effects (like Heal Block). Instead, it should be delegated to the pokemon, who already have generalised methods in place to deal with such triggers.