From 5d231d7f821ceaea3d750e65c1ce20f5c979a3b3 Mon Sep 17 00:00:00 2001 From: Alar of Runetotem Date: Sun, 19 Nov 2023 20:46:04 +0100 Subject: [PATCH] Wow no loger autoswitch between mend and revive. Added a macro to manege logic --- CHANGELOG.txt | 6 +++--- PetCare.lua | 5 +++-- PetCare.toc | 1 + RelNotes.lua | 6 ++++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d85c831..b1b7d94 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,10 +2,10 @@ PetCare manages your fighting pet needs: * keeps track of mend pet * allow to cast mend pet,revive pet and misdirection directly via it's frame -* shows your current aggro compared to yout pet's one +* shows your current aggro compared to your pet's one * can play a sound and or show an alert when your pet falls under a customizable level of health * can play a sound if you enter a non PVP instance with Growl active * alerts can be disabled in pvp instances Configure via Interface/Addons or via /petcare gui -==Rel 1.0.0== -First Public version +==Rel 6.7.1== +Fixed Mend Pet / Revive pet selection diff --git a/PetCare.lua b/PetCare.lua index 0d52cc4..dc05efa 100644 --- a/PetCare.lua +++ b/PetCare.lua @@ -139,8 +139,9 @@ function addon:GenerateFrame() widget:SetTitle(UnitName("pet") or "Pet") -- SetModifiedCast(modifier,actiontype,button,value) local tooltip='' - widget:SetModifiedCast('','spell','1',RevivePet) - tooltip=tooltip .. KEY_BUTTON1 .. ': ' .. MendPet .. "\n" + print(MendPet,RevivePet,CallPet1) + widget:SetModifiedCast('','macrotext','1','/cast [@pet,dead] '.. RevivePet .. '; [pet] ' .. MendPet) + tooltip=tooltip .. KEY_BUTTON1 .. ': ' .. MendPet .. "/" .. RevivePet .."\n" widget:SetModifiedCast('','spell','2',Misdirection) tooltip=tooltip .. KEY_BUTTON2 .. ': ' .. Misdirection .. "\n" widget:SetModifiedCast('ctrl-','spell','2',DismissPet) diff --git a/PetCare.toc b/PetCare.toc index 45fd032..5b7ad6e 100644 --- a/PetCare.toc +++ b/PetCare.toc @@ -4,6 +4,7 @@ ## Notes-itIT: Gestisce in battaglia il famiglio di un cacciatore ## Author: @project-author@ ## Version: @project-version@ 100200 +## IconTexture: 626000 ## X-Version: 1.1.1 ## X-Revision: @project-abbreviated-hash@ ## eMail: alar@aspide.it diff --git a/RelNotes.lua b/RelNotes.lua index 99936a7..39761f1 100644 --- a/RelNotes.lua +++ b/RelNotes.lua @@ -1,5 +1,4 @@ -local me,ns=... -local L=LibStub("AceLocale-3.0"):GetLocale(me,true) +local me=... local hlp=LibStub("AceAddon-3.0"):GetAddon(me) function hlp:loadHelp() self:HF_Title("Pet Care",'RELNOTES') @@ -14,6 +13,9 @@ can play a sound if you enter a non PVP instance with Growl active alerts can be disabled in PVP ]]) self:HF_Paragraph("Release Notes") +self:RelNotes(6,7,1,[[ + Fix: Now correctly chooses between Revive pet and Mend pet +]]) self:RelNotes(6,2,1,[[ Toc: 8.3.0 ]])