-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
turtle-wow: add zhCN support for trueshot
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,12 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function () | |
-- add trueshot to pfUI's custom casts | ||
local player = UnitName("player") | ||
|
||
libcast.customcast["trueshot"] = function(begin, duration) | ||
-- add locales | ||
pfUI_locale["enUS"]["customcast"]["TRUESHOT"] = "Trueshot" | ||
pfUI_locale["zhCN"]["customcast"]["TRUESHOT"] = "稳固射击" | ||
local trueshot = L["customcast"]["TRUESHOT"] | ||
|
||
libcast.customcast[strlower(trueshot)] = function(begin, duration) | ||
if begin then | ||
local duration = duration or 1000 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
shagu
Author
Owner
|
||
|
||
|
@@ -53,7 +58,7 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function () | |
local start = GetTime() + lag/1000 | ||
|
||
-- add cast action to the database | ||
libcast.db[player].cast = "Trueshot" | ||
libcast.db[player].cast = trueshot | ||
libcast.db[player].rank = lastrank | ||
libcast.db[player].start = start | ||
libcast.db[player].casttime = duration | ||
|
trueshot time should be 1500ms, or 1000ms, hope it will be corrected