diff --git a/msg.go b/msg.go index b0f6960..9bcd814 100644 --- a/msg.go +++ b/msg.go @@ -186,7 +186,9 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa `(You were healed by (?P.*))|` + `(You were poisoned by (?P.*))|` + `(Got hit by an arrow from (?P.*), (?P.*) skill decreased)|` + + `(Got hit by an arrow from (?P.*))|` + `(Your (?P.*) has been broken)|` + + `(⚡Battle Cry. You were inspired by (?P.*))|` + `.+)`) for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) { if len(re.ReplaceAllString(l[0], "${Cry}")) != 0 { @@ -209,8 +211,12 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa // log.Printf("parseSubTypeMessageReport : Extra[%d] : Poisoner : %s\n", i, re.ReplaceAllString(l[0], "${Poisoner}")) } else if len(re.ReplaceAllString(l[0], "${Archer}")) != 0 && len(re.ReplaceAllString(l[0], "${Skill}")) != 0 { // log.Printf("parseSubTypeMessageReport : Extra[%d] : Archer : %s / Skill : %s\n", i, re.ReplaceAllString(l[0], "${Archer}"), re.ReplaceAllString(l[0], "${Skill}")) + } else if len(re.ReplaceAllString(l[0], "${Archer}")) != 0 { + // log.Printf("parseSubTypeMessageReport : Extra[%d] : Archer : %s\n", i, re.ReplaceAllString(l[0], "${Archer}")) } else if len(re.ReplaceAllString(l[0], "${Broken}")) != 0 { // log.Printf("parseSubTypeMessageReport : Extra[%d] : Broken\n", i) + } else if len(re.ReplaceAllString(l[0], "${CryInspirer}")) != 0 { + // log.Printf("parseSubTypeMessageReport : Extra[%d] : CryInspirer\n", i) } else { log.Printf("parseSubTypeMessageReport : Extra[%d] : %s\n", i, l[0]) }