Commit 8109d630 authored by Ivaria's avatar Ivaria
Browse files

Fixed detection of magic debuffs as removable for Monks - closes CurseForge ticket 356

parent 84417e5e
......@@ -42,16 +42,13 @@ VUHDO_INIT_DEBUFF_ABILITIES = {
["MONK"] = {
[VUHDO_DEBUFF_TYPE_POISON] = { VUHDO_SPELL_ID.DETOX },
[VUHDO_DEBUFF_TYPE_DISEASE] = { VUHDO_SPELL_ID.DETOX },
[VUHDO_DEBUFF_TYPE_MAGIC] = { VUHDO_SPELL_ID.INTERNAL_MEDICINE },
[VUHDO_DEBUFF_TYPE_MAGIC] = { VUHDO_SPELL_ID.DETOX },
},
};
VUHDO_SPEC_TO_DEBUFF_ABIL = {
[VUHDO_SPELL_ID.INTERNAL_MEDICINE] = VUHDO_SPELL_ID.DETOX,
};
VUHDO_SPEC_TO_DEBUFF_ABIL = { };
......
......@@ -456,15 +456,15 @@ function VUHDO_initDebuffs()
for tDebuffType, tAbilities in pairs(VUHDO_INIT_DEBUFF_ABILITIES[tClass] or sEmpty) do
for tCnt = 1, #tAbilities do
tAbility = tAbilities[tCnt];
--VUHDO_Msg("check: " .. tAbility);
-- VUHDO_Msg("check: " .. tAbility);
if VUHDO_isSpellKnown(tAbility) or tAbility == "*" then
VUHDO_PLAYER_ABILITIES[tDebuffType] = VUHDO_SPEC_TO_DEBUFF_ABIL[tAbility] or tAbility;
--VUHDO_Msg("KEEP:" .. VUHDO_PLAYER_ABILITIES[tDebuffType]);
-- VUHDO_Msg("KEEP: Type " .. tDebuffType .. " because of spell " .. VUHDO_PLAYER_ABILITIES[tDebuffType]);
break;
end
end
end
--VUHDO_Msg("---");
-- VUHDO_Msg("---");
if not VUHDO_CONFIG then VUHDO_CONFIG = _G["VUHDO_CONFIG"]; end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment