Commit 623b690c748c983f272bacffd1189b4332acf556

Authored by Otowa Kotori
1 parent f3564402

Fix trap noun sub

... ... @@ -133,8 +133,8 @@ function _M:trigger(x, y, who)
133 133 else
134 134 local tname = who:getName()
135 135 local str =self.message
136   - str = str:gsub("@target@", tname)
137   - str = str:gsub("@Target@", tname:capitalize())
  136 + str = str:noun_sub("@target@", tname)
  137 + str = str:noun_sub("@Target@", tname:capitalize())
138 138 game.logSeen(who, "%s", str)
139 139 end
140 140 local known, del = false, false
... ...