This is a fix in WantSwapping() that so far works for me in Ringerx2 mode: no swapping in loop, no trying to load a dead pet:
Next thing that bothers me now (or should I say "next disaster"?) is: Favorites Only filter is not working in PBS. I've modified the code to execute it unconditionally, still I am getting all my pets in the result. I want to level like 10 more pets, but 60 are included in the levelling loop.
Lua.DoString("C_PetJournal.SetFlagFilter(LE_PET_JOURNAL_FLAG_FAVORITES, true);");
Has Blizzard changed flag value or something?
Changes are in bold and are Ringerx2 oriented. They may be helpful in other modes preventing loops and hangs but may break the desired strategy.if (slot1rating < slot2rating || slot1rating < slot3rating)
{
//swap pet
Log("Swapping Pets");
if (slot2rating >= slot3rating && myPets[1].Health > 30 ) CombatCallPet(2);
if (slot2rating < slot3rating) CombatCallPet(3);
//Thread.Sleep(1000);
}
else
{
if( CanSelect(3) ) CombatCallPet(3);
if( CanSelect(2) ) CombatCallPet(2);
CombatCallPet(1);
}
Next thing that bothers me now (or should I say "next disaster"?) is: Favorites Only filter is not working in PBS. I've modified the code to execute it unconditionally, still I am getting all my pets in the result. I want to level like 10 more pets, but 60 are included in the levelling loop.
Lua.DoString("C_PetJournal.SetFlagFilter(LE_PET_JOURNAL_FLAG_FAVORITES, true);");
Has Blizzard changed flag value or something?