pet breeds addon

Discuss your favorite pet addons and macros.
User avatar
Shingetsu
Posts:155
Joined:November 3rd, 2014
Pet Score:4288
Realm:Mal'Ganis-eu
Contact:
Re: pet breeds addon

Post by Shingetsu » October 20th, 2015, 12:15 pm

You could try this version:
Added a check if the pet is an enemy. Might fix it.

Still Battle.lua, same position:

Code: Select all

local wild_hp_factor, wild_power_factor = 1,1
if _G.C_PetBattles.IsWildBattle() and not self:IsAlly() then
wild_hp_factor = 1.2
wild_power_factor = 1.25
end

return floor((self:GetMaxHealth() * healthScale - healthBonus + .5) * wild_hp_factor),
floor(self:GetPower() * wild_power_factor),
floor(self:GetSpeed() * speedScale + .5)
end

User avatar
Paladance
Posts:1010
Joined:July 18th, 2015
Pet Score:12412
Realm:Burning Legion-eu
Contact:

Re: pet breeds addon

Post by Paladance » October 21st, 2015, 9:45 am

Still same mess sadly :(

http://postimg.org/image/ofios9067/

(edit: A plain copypaste, without layers, results the same)
Image

I have compiled community knowledge & data about pet battle abilities!
https://www.warcraftpets.com/community/forum/viewtopic.php?f=3&t=19507

User avatar
Shingetsu
Posts:155
Joined:November 3rd, 2014
Pet Score:4288
Realm:Mal'Ganis-eu
Contact:

Re: pet breeds addon

Post by Shingetsu » October 21st, 2015, 10:15 am

Huh... that's odd. Maybe one of the modules I'm not using is breaking it for you. I'll have to activate them and check. Will tinker some more :)

I'm assuming that you activated all the PetTracker Modules (i.e. PetTracker, PetTracker Breeds, PetTracker_Journal and so on)?

-- Edit: Ok, that's super weird. I enabled all of the PetTracker addons and I can't reproduce your problem. Everything seems to work fine.

Here is a screenshot: http://imgur.com/tcmRGDy

One thing I'm not sure about is, if the Upgrade-Toast is true.

Do you by any chance get any lua errors?
Do you use any other pet battle addons?

Maybe it's a combination of addons which causes this.

You could try the following:
- Disable all your addons, only keep PetTracker and PetTracker Breeds enabled
- start enabling the others one by one until your problem reappears

User avatar
Paladance
Posts:1010
Joined:July 18th, 2015
Pet Score:12412
Realm:Burning Legion-eu
Contact:

Re: pet breeds addon

Post by Paladance » October 21st, 2015, 11:13 am

Still the same, even after restarting WoW. No error message pop-ups.

Maybe could you upload that .lua file?

Also sorry for that white space right from the screenshot.
Image

I have compiled community knowledge & data about pet battle abilities!
https://www.warcraftpets.com/community/forum/viewtopic.php?f=3&t=19507

User avatar
Shingetsu
Posts:155
Joined:November 3rd, 2014
Pet Score:4288
Realm:Mal'Ganis-eu
Contact:

Re: pet breeds addon

Post by Shingetsu » October 21st, 2015, 12:11 pm

Here you go: https://www.dropbox.com/s/o8r47nih74yzvaf/Battle.lua?dl=0
(You can skip the login part, if you don't have a dropbox account)

User avatar
Paladance
Posts:1010
Joined:July 18th, 2015
Pet Score:12412
Realm:Burning Legion-eu
Contact:

Re: pet breeds addon

Post by Paladance » October 21st, 2015, 12:43 pm

Yes, now it works!
I've taken a look on the code, it seems that the nesting just didn't want to be applied properly.

That's also a piece of info for all other people trying to copy+paste it, I think.

Really sorry for disturbance and making you feeling that there is much more to do. :oops:
Image

I have compiled community knowledge & data about pet battle abilities!
https://www.warcraftpets.com/community/forum/viewtopic.php?f=3&t=19507

User avatar
Shingetsu
Posts:155
Joined:November 3rd, 2014
Pet Score:4288
Realm:Mal'Ganis-eu
Contact:

Re: pet breeds addon

Post by Shingetsu » October 21st, 2015, 1:20 pm

Don't worry, I'm glad I could help :)

// Edit - still not 100% if the Upgrade-Toast works, will have a look into it, to make sure

Post Reply