Mercurial > wow > raid-target-tactics
comparison Main.lua @ 13:cc98f28b1c7c tip
remove geradd message
fix issue with --
add support for console commands
author | Jay Bird <a4blank@yahoo.com> |
---|---|
date | Thu, 13 Jan 2011 20:50:34 +0300 |
parents | d2cbfe498c4d |
children |
comparison
equal
deleted
inserted
replaced
11:d2cbfe498c4d | 13:cc98f28b1c7c |
---|---|
302 | 302 |
303 function RTT:Announce() | 303 function RTT:Announce() |
304 local channel = self:GetDefaultChatChannel() | 304 local channel = self:GetDefaultChatChannel() |
305 if channel then | 305 if channel then |
306 for _, data in ipairs(self:GetFormData()) do | 306 for _, data in ipairs(self:GetFormData()) do |
307 local str = table.concat(data, " — ") | 307 local str = data.icon |
308 if data.action then | |
309 str = str .. " — " .. data.action | |
310 end | |
311 if data.player then | |
312 str = str .. " — " .. data.player | |
313 end | |
308 SendChatMessage(str, channel) | 314 SendChatMessage(str, channel) |
309 end | 315 end |
310 if UnitName("player") == "Герадд" then | 316 end |
311 SendChatMessage("Герадд любит тебя!", channel) | 317 end |
312 end | 318 |
313 end | 319 |
314 end | |
315 | |
316 |