mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-22 04:00:49 +00:00
libdebuff: add hit handler for paladin judgements
This commit is contained in:
Vendored
+7
@@ -132,6 +132,13 @@ pfUI_locale["deDE"]["dyndebuffs"] = {
|
|||||||
["Gouge"] = "Solarplexus",
|
["Gouge"] = "Solarplexus",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfUI_locale["deDE"]["judgements"] = {
|
||||||
|
["Richturteil der Gerechtigkeit"] = true,
|
||||||
|
["Richturteil des Lichts"] = true,
|
||||||
|
["Richturteil der Weisheit"] = true,
|
||||||
|
["Richturteil des Kreuzfahrers"] = true,
|
||||||
|
}
|
||||||
|
|
||||||
pfUI_locale["deDE"]["interrupts"] = {
|
pfUI_locale["deDE"]["interrupts"] = {
|
||||||
["Schildhieb"] = true,
|
["Schildhieb"] = true,
|
||||||
["Zuschlagen"] = true,
|
["Zuschlagen"] = true,
|
||||||
|
|||||||
Vendored
+7
@@ -132,6 +132,13 @@ pfUI_locale["enUS"]["dyndebuffs"] = {
|
|||||||
["Gouge"] = "Gouge",
|
["Gouge"] = "Gouge",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfUI_locale["enUS"]["judgements"] = {
|
||||||
|
["Judgement of Justice"] = true,
|
||||||
|
["Judgement of Light"] = true,
|
||||||
|
["Judgement of Wisdom"] = true,
|
||||||
|
["Judgement of the Crusader"] = true,
|
||||||
|
}
|
||||||
|
|
||||||
pfUI_locale["enUS"]["interrupts"] = {
|
pfUI_locale["enUS"]["interrupts"] = {
|
||||||
["Shield Bash"] = true,
|
["Shield Bash"] = true,
|
||||||
["Pummel"] = true,
|
["Pummel"] = true,
|
||||||
|
|||||||
Vendored
+7
@@ -132,6 +132,13 @@ pfUI_locale["esES"]["dyndebuffs"] = {
|
|||||||
["Gouge"] = "Incapacitación",
|
["Gouge"] = "Incapacitación",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfUI_locale["esES"]["judgements"] = {
|
||||||
|
["Sentencia de Justicia"] = true,
|
||||||
|
["Sentencia de Luz"] = true,
|
||||||
|
["Sentencia de Sabiduría"] = true,
|
||||||
|
["Sentencia del Cruzado"] = true,
|
||||||
|
}
|
||||||
|
|
||||||
pfUI_locale["esES"]["interrupts"] = {
|
pfUI_locale["esES"]["interrupts"] = {
|
||||||
["Azote de escudo"] = true,
|
["Azote de escudo"] = true,
|
||||||
["Zurrar"] = true,
|
["Zurrar"] = true,
|
||||||
|
|||||||
Vendored
+7
@@ -127,6 +127,13 @@ pfUI_locale["frFR"]["dyndebuffs"] = {
|
|||||||
["Gouge"] = "Suriner",
|
["Gouge"] = "Suriner",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfUI_locale["frFR"]["judgements"] = {
|
||||||
|
["Jugement de justice"] = true,
|
||||||
|
["Jugement de lumière"] = true,
|
||||||
|
["Jugement de sagesse"] = true,
|
||||||
|
["Jugement du Croisé"] = true,
|
||||||
|
}
|
||||||
|
|
||||||
pfUI_locale["frFR"]["interrupts"] = {
|
pfUI_locale["frFR"]["interrupts"] = {
|
||||||
["Coup de bouclier"] = true,
|
["Coup de bouclier"] = true,
|
||||||
["Volée de coups"] = true,
|
["Volée de coups"] = true,
|
||||||
|
|||||||
Vendored
+7
@@ -132,6 +132,13 @@ pfUI_locale["koKR"]["dyndebuffs"] = {
|
|||||||
["Gouge"] = "후려치기",
|
["Gouge"] = "후려치기",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfUI_locale["koKR"]["judgements"] = {
|
||||||
|
["정의의 심판"] = true,
|
||||||
|
["빛의 심판"] = true,
|
||||||
|
["지혜의 심판"] = true,
|
||||||
|
["성전사의 심판"] = true,
|
||||||
|
}
|
||||||
|
|
||||||
pfUI_locale["koKR"]["interrupts"] = {
|
pfUI_locale["koKR"]["interrupts"] = {
|
||||||
["방패 가격"] = true,
|
["방패 가격"] = true,
|
||||||
["자루 공격"] = true,
|
["자루 공격"] = true,
|
||||||
|
|||||||
Vendored
+7
@@ -132,6 +132,13 @@ pfUI_locale["ruRU"]["dyndebuffs"] = {
|
|||||||
["Gouge"] = "Парализующий удар",
|
["Gouge"] = "Парализующий удар",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfUI_locale["ruRU"]["judgements"] = {
|
||||||
|
["Правосудие справедливости"] = true,
|
||||||
|
["Правосудие света"] = true,
|
||||||
|
["Правосудие мудрости"] = true,
|
||||||
|
["Правосудие воина света"] = true,
|
||||||
|
}
|
||||||
|
|
||||||
pfUI_locale["ruRU"]["interrupts"] = {
|
pfUI_locale["ruRU"]["interrupts"] = {
|
||||||
["Удар щитом"] = true,
|
["Удар щитом"] = true,
|
||||||
["Зуботычина"] = true,
|
["Зуботычина"] = true,
|
||||||
|
|||||||
Vendored
+7
@@ -127,6 +127,13 @@ pfUI_locale["zhCN"]["dyndebuffs"] = {
|
|||||||
["Gouge"] = "凿击",
|
["Gouge"] = "凿击",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfUI_locale["zhCN"]["judgements"] = {
|
||||||
|
["公正审判"] = true,
|
||||||
|
["圣光审判"] = true,
|
||||||
|
["智慧审判"] = true,
|
||||||
|
["十字军审判"] = true,
|
||||||
|
}
|
||||||
|
|
||||||
pfUI_locale["zhCN"]["interrupts"] = {
|
pfUI_locale["zhCN"]["interrupts"] = {
|
||||||
["盾击"] = true,
|
["盾击"] = true,
|
||||||
["拳击"] = true,
|
["拳击"] = true,
|
||||||
|
|||||||
+25
-1
@@ -18,6 +18,7 @@ if pfUI.api.libdebuff then return end
|
|||||||
|
|
||||||
local libdebuff = CreateFrame("Frame", "pfdebuffsScanner", UIParent)
|
local libdebuff = CreateFrame("Frame", "pfdebuffsScanner", UIParent)
|
||||||
local scanner = libtipscan:GetScanner("libdebuff")
|
local scanner = libtipscan:GetScanner("libdebuff")
|
||||||
|
local _, class = UnitClass("player")
|
||||||
local lastspell
|
local lastspell
|
||||||
|
|
||||||
function libdebuff:GetDuration(effect, rank)
|
function libdebuff:GetDuration(effect, rank)
|
||||||
@@ -128,6 +129,11 @@ libdebuff:RegisterEvent("PLAYER_TARGET_CHANGED")
|
|||||||
libdebuff:RegisterEvent("SPELLCAST_STOP")
|
libdebuff:RegisterEvent("SPELLCAST_STOP")
|
||||||
libdebuff:RegisterEvent("UNIT_AURA")
|
libdebuff:RegisterEvent("UNIT_AURA")
|
||||||
|
|
||||||
|
-- register seal handler
|
||||||
|
if class == "PALADIN" then
|
||||||
|
libdebuff:RegisterEvent("CHAT_MSG_COMBAT_SELF_HITS")
|
||||||
|
end
|
||||||
|
|
||||||
-- Remove Pending
|
-- Remove Pending
|
||||||
libdebuff.rp = { SPELLIMMUNESELFOTHER, IMMUNEDAMAGECLASSSELFOTHER,
|
libdebuff.rp = { SPELLIMMUNESELFOTHER, IMMUNEDAMAGECLASSSELFOTHER,
|
||||||
SPELLMISSSELFOTHER, SPELLRESISTSELFOTHER, SPELLEVADEDSELFOTHER,
|
SPELLMISSSELFOTHER, SPELLRESISTSELFOTHER, SPELLEVADEDSELFOTHER,
|
||||||
@@ -143,8 +149,26 @@ libdebuff.pending = {}
|
|||||||
|
|
||||||
-- Gather Data by Events
|
-- Gather Data by Events
|
||||||
libdebuff:SetScript("OnEvent", function()
|
libdebuff:SetScript("OnEvent", function()
|
||||||
|
-- paladin seal refresh
|
||||||
|
if event == "CHAT_MSG_COMBAT_SELF_HITS" then
|
||||||
|
local hit = cmatch(arg1, COMBATHITSELFOTHER)
|
||||||
|
local crit = cmatch(arg1, COMBATHITCRITSELFOTHER)
|
||||||
|
if hit or crit then
|
||||||
|
for seal in L["judgements"] do
|
||||||
|
local name = UnitName("target")
|
||||||
|
local level = UnitLevel("target")
|
||||||
|
if name and libdebuff.objects[name] then
|
||||||
|
if level and libdebuff.objects[name][level] and libdebuff.objects[name][level][seal] then
|
||||||
|
libdebuff:AddEffect(name, level, seal)
|
||||||
|
elseif libdebuff.objects[name][0] and libdebuff.objects[name][0][seal] then
|
||||||
|
libdebuff:AddEffect(name, 0, seal)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Add Combat Log
|
-- Add Combat Log
|
||||||
if event == "CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE" or event == "CHAT_MSG_SPELL_PERIODIC_CREATURE_DAMAGE" then
|
elseif event == "CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE" or event == "CHAT_MSG_SPELL_PERIODIC_CREATURE_DAMAGE" then
|
||||||
local unit, effect = cmatch(arg1, AURAADDEDOTHERHARMFUL)
|
local unit, effect = cmatch(arg1, AURAADDEDOTHERHARMFUL)
|
||||||
if unit and effect then
|
if unit and effect then
|
||||||
local unitlevel = UnitName("target") == unit and UnitLevel("target") or 0
|
local unitlevel = UnitName("target") == unit and UnitLevel("target") or 0
|
||||||
|
|||||||
Reference in New Issue
Block a user