rpherbig / dr-scripts

A series of Lich 5 (https://github.com/elanthia-online/lich-5) scripts for use with DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!
GNU General Public License v2.0
52 stars 177 forks source link

Sorcery should heal after backlash #974

Closed rpherbig closed 7 years ago

rpherbig commented 7 years ago
2016-10-26 12:30:26 -0400:[sorcery]>cast
2016-10-26 12:30:26 -0400:You raise your hand in an imaginary toast to Glythtide.
2016-10-26 12:30:26 -0400:Your cambrinth armband emits a loud *snap* as it discharges all its power to aid your spell.
2016-10-26 12:30:26 -0400:The spell pattern resists the influx of Lunar mana, and a strange burning sensation backwashes from the spell pattern into your body.
2016-10-26 12:30:26 -0400:An instant rush of black and blue fire explodes into being, consuming your right hand and turning it into ash!

The possible effects are listed at https://elanthipedia.play.net/Sorcery#Backlash_effects

How do we determine when to heal?

  1. In the example above, we could look for the 'backwash' message (are there others?)
  2. Or we could look for the possible effect messages
  3. Or we could always run safe-room and rely on it to short circuit if we don't need to heal

@rcuhljr thoughts?

drboldwin commented 7 years ago

Couldn't we just check health after sorcery?

Or better yet - check it after a backlash, and proceed accordingly

rpherbig commented 7 years ago

I don't know too much about Sorcery. Is checking for the backlash messages from that link sufficient?