From 8df1e5f1c0d8da68cfdf661df662c801dee42ba1 Mon Sep 17 00:00:00 2001 From: Tim Ward Date: Sun, 7 Aug 2016 22:25:42 -0400 Subject: [PATCH] Added regexs for Fallen Barb I'm not sure if it's because he's a barbarian, or because of the Fallen, but the XML sent across for my Barbarian in the Fallen is a different format than the regex here. Here's the raw XML sent: Panther (65 roisaen) Turtle (65 roisaen) Monkey (65 roisaen) Piranha (65 roisaen) > It wouldn't surprise me if the XML sent doesn't match Prime, sometimes they forget to move changes over here. Does spellmonitor work in prime for barb abilities? --- spellmonitor.lic | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spellmonitor.lic b/spellmonitor.lic index 1d16736207..87d945d3ce 100644 --- a/spellmonitor.lic +++ b/spellmonitor.lic @@ -86,6 +86,12 @@ spellAction = proc do |server_string| elsif server_string =~ %r{pushStream id="percWindow"/>(.+) \(Fading\)} DRSpells.active_spells[Regexp.last_match(1)] = 0 DRSpells.refresh_data[Regexp.last_match(1)] = true + elsif server_string =~ %r{ (.*) \((\d+) roisaen\)} + DRSpells.active_spells[Regexp.last_match(1)] = Regexp.last_match(2) + DRSpells.refresh_data[Regexp.last_match(1)] = true + elsif server_string =~ %r{ (.+) \((\d+) roisaen\)} + DRSpells.active_spells[Regexp.last_match(1)] = Regexp.last_match(2) + DRSpells.refresh_data[Regexp.last_match(1)] = true end server_string