My Pet Collection
You've collected 0 pets
Log in to track your collection

Mechanics & Formulas

Discuss pet battles, strategy and theorycrafting.
User avatar
Paladance
 
Posts: 986
Joined: July 18th, 2015
Pet Score: 4708
Realm: Burning Legion-EU

Re: Mechanics & Formulas

Postby Paladance » November 19th, 2017, 8:02 am

There surely is a sequence. I think I have described it before, but it was unfinished. The only thing I have noted after that was that Chew's proc happens before stuns caused by opponent's Ice Tomb, perhaps workalikes aswell.

0. Effects from a hostile source that change your pet's resistance. Currently only Rot proc.
1a. Abilities that always go first due to the increased speed value.
1b. Standard attacks of the first and second pet.
2. Delayed effects like Whirlpool or Geyser. Devour/Ravage's healing too, as I'm always annoyed when my cat gets a DoT. Wrrrr.
3. Technical damage over time -- effects that are both halved while against aquatics and can't be avoided by dodges due to the aura stuck to the wearer.
4. Healing over time.

So Chew proc should go between 1 and 2.

Things to place on the temporal axis:
Image

Bickus
 
Posts: 3
Joined: November 17th, 2017
Pet Score: 3859
Realm: Blackrock-EU

Re: Mechanics & Formulas

Postby Bickus » November 22nd, 2017, 1:18 am

Alright, i will keep this in mind by doing this dynamically. I bind the effects of a spell (e.g. direct hit-component to 1b, dot to 3) to a state (and a precise round), so it can be moved around quickly.

I didnt test it so far as i focus on the implementation of basics, but some things seem kinda quirky:

What about healing spells? Some change the school (e.g. Nature´s Ward: x => elementary) of the target on "hit". Does this impact the amount of healing?

Regarding crit: There is a state(=buff) which increases the critchance by 50%. Therefore
a) Basecritchance*buffchance (=> 5%*1.5 = 7.5%)?
b) does it add it (=> 5%+50% = 55%)?
c) or are these "points" (=> 5% + (50 points=5%) = 10% critchance)?

If i increase via an ability my maxhealth (i believe there is an ability, cant find it) temporarily, and get hit by an ability which decreases hp by 10% -> will the 10% be based on the increased hp or my base_hp?

User avatar
Rosqo
 
Posts: 106
Joined: April 26th, 2017
Pet Score: 4721
Realm: Silvermoon-EU

Re: Mechanics & Formulas

Postby Rosqo » November 22nd, 2017, 8:51 am

The percentages in pet battles are additive so 5% crit + 50% additional crit = 55% total crit.

Flat % dmg abilities aren’t effected though.

User avatar
Jerebear
 
Posts: 1101
Joined: September 15th, 2013
Pet Score: 5572
Realm: Llane-US

Re: Mechanics & Formulas

Postby Jerebear » November 22nd, 2017, 6:12 pm

Caviate to that:
Percentages of buffs and debuffs on the same pet are additive. If one pet has a buff and the other pet a debuff of the same type, they are multiplicative.

Example:

If pet A has Shattered defenses and crouch up, those are additive because they are on the same pet. However if pet B has supercharge, it's effect is multiplicative. IE the damage on pet A is

(1 + 1.00 - 0.50) * (1 + 1.25) = 3.375x damage

as opposed to:

(1 + 1.00 - 0.50 + 1.25) = 2.750x damage
Carry Pet Experience Reference Guide:
http://www.warcraftpets.com/community/forum/viewtopic.php?f=10&t=8829

User avatar
Paladance
 
Posts: 986
Joined: July 18th, 2015
Pet Score: 4708
Realm: Burning Legion-EU

Re: Mechanics & Formulas

Postby Paladance » November 25th, 2017, 12:48 pm

Bickus wrote:If i increase via an ability my maxhealth (i believe there is an ability, cant find it) temporarily, and get hit by an ability which decreases hp by 10% -> will the 10% be based on the increased hp or my base_hp?

Treat the total HP as displayed at the time of your Sunny Day, Ancient Blessing etc (so increased one). Debuffs such as a Glowing Toxin apply to the new value until the bonus is gone. Ditto the Explode output, magic racial barrier or even humanoid healing.
Image

User avatar
Drlambda
 
Posts: 58
Joined: May 8th, 2016
Pet Score: 5217
Realm: Arthas-EU

Re: Mechanics & Formulas

Postby Drlambda » November 25th, 2017, 4:01 pm

I'd say that the vast majority of all trainer battles are strictly sequence-based, with the only variance coming from CCs like Rosqo correctly said, in which case they'll swap in the next pet in line and use their sequence. If the battle is not a trainer battle (per example Argus elites) that swap will not happen and they'll pass and then continue where they stopped.

Some trainers have some very small priority-based moves. Most of them will fall into normal sequences afterwards. Examples i know of:
Christoph VonFeasel: The trihorn will use a damaging ability if your pet is under 25%hp and Trihorn Shield otherwise.
Mo'ruk: The turtle will, depending on something i'm unaware of, sometimes bind you first before headbutting you and sometimes headbutt you first. After that, it'll use Headbutt on cooldown.
The legendary trainer in Draenor: Latern will use Wish if her HP are below 50% at the beginning of the turn.

And then there are the completely random trainers which pretty much emulate rolling your face on the keyboard. These are all wild battles, Crysa, Jeremy Feasel and possibly others.
CloseToZero - Watch me lose on youtube with bad pets! :D

User avatar
Paladance
 
Posts: 986
Joined: July 18th, 2015
Pet Score: 4708
Realm: Burning Legion-EU

Re: Mechanics & Formulas

Postby Paladance » November 27th, 2017, 12:29 am

Drlambda wrote:Some trainers have some very small priority-based moves. Most of them will fall into normal sequences afterwards. Examples i know of:

Great idea to list that!
The legendary trainer in Draenor: Latern will use Wish if her HP are below 50% at the beginning of the turn.

Ditto with Salad (Erris/Kura pet) and their Consume Corpse. And that Sissix' elemental casts first Healing Wave when damaged for a certain amount (perhaps the ability one, but can be slightly less -- watch out for speed). Pixiebell's Life Exchange is a riddle wrapped in a mystery inside an enigma, considering it can benefit you -- but it bases on a particularly low amount of her HP.
Also, add all pets with Dark Rebirth to that.

Regarding Jeremy Feasel, Judgment starts from Darkmoon Curse and Fezwick always stuns first. Otherwise, yep.
Image

Previous

Return to Pet Battles

Who is online

Users browsing this forum: Drlambda, Rosqo and 5 guests