Something random that popped into my head while reading this thread :

Situation 1
Suppose that I bring Onatel to a raid against a defending Onatel. Both Onatels use their specials on each other, so they’re both theoretically stealing mana from each other.

Situation 2
Suppose that I bring Onatel to a battle where her special could be reflected (rare yellow titan, Guardian Owl boss during the Guardians event, or when a defending Ursena has her holy reflect buff on). If Onatel’s special is reflected back at her, she would theoretically be stealing mana from herself.

—

In either situation, does this create an infinite loop? In other words, Onatel gains mana, which triggers the mana steal, which causes Onatel to gain mana, which triggers the mana steal…

1 Like

Here’s some previous conversation as a starting point:

An alliance mate just brought up a thought provoking question, and I’m sure it can be answered, but i’m not clever enough. What happens if your Onatel is ready to fire her special, and the Enemy’s Onatel targets your Onatel with their special, you retaliate with your Onatel’s special, and now you are both under the mana steal. Let’s assume all maxed stats. Now, what happens with you hit their Onatel with 5 yellow tiles?

It wont cancel out because the mana gain is based upon how many times the enemy is hit/tile damage.

If you have 2 Onatels facing each other and the fired at the same time, their mana steal would still work BUT the A.I and you will have a different “board/tile setup” and different nearby heroes that gain mana at a different rate therefore both Onatels stealing/gaining mana at two different rates.

So no, the game does not go in an infinite loop nor does earth freeze in time lol

Someone with better skills in infinite series can figure this out, but here’s the series:

p = Spell effect on my Onatal (25%, 50%, 75%, 100%)
q = Spell effect on foe’s Onatel

then the mana my Onatel gains per tile (expressed in tiles) is:

p - pq + (p^2q - p^2q^2) + (p^3q^2 - p^3q^3) + …

So this:

p = Spell effect on my Onatal (25%, 50%, 75%, 100%)
q = Spell effect on foe’s Onatel

mana = p - pq + (p^2q - p^2q^2) + (p^3q^2 - p^3q^3) + …

We can rewrite the equation as:

mana = p(1 – q) + p^2q(1-q) + p^3q^2(1-q) + …

Or:

mana = p(1-q) * (1 + sum{n=1…inf}(p^n * q^n))

Now, the closed form for sum{n=1…inf}(p^n * q^n) is:

sum{n=1…inf}(p^n * q^n) = pq/(1-pq)

So the overall closed form is:

mana = p(1-q) * (1 + sum{n=1…inf}(p^n * q^n))

mana = p(1-q) * (1 + pq/(1-pq))

```
mana = p(1-q)/(1-pq)
```

So, for instance p=.5, q=.25

mana = .5 * (.75) / (.875)
mana = 0.429 of a tile

The big thing to note, though, is that the infinite series is divergent if both p and q are 1.

What about the Enemy Onatel?

Edit: remember, SG rounds up the mana to the integer. But I believe they do this after the total mana is calculated, not throughout the calculation

It’s 1 - friendly onatel, since there’s only one tile’s worth of energy to divvy up. So:

Enemy gain = (1-p)/(1-pq)

The calculation assumes a whole tile of mana gain at the start, so the mana rounding factor is baked in. If you want to convert to % of a bar, you need to divide by 10 since they’re both average mana (or 9 if someone has high level mana troops).

Here it is as a table, in tiles:

My Onatel
Enemy Onatel
My Gain
Enemy Gain
0.25
0.25
0.200
0.800
0.5
0.25
0.429
0.571
0.75
0.25
0.692
0.308
1
0.25
1.000
0.000
0.25
0.5
0.143
0.857
0.5
0.5
0.333
0.667
0.75
0.5
0.600
0.400
1
0.5
1.000
0.000
0.25
0.75
0.077
0.923
0.5
0.75
0.200
0.800
0.75
0.75
0.429
0.571
1
0.75
1.000
0.000
0.25
1
0.000
1.000
0.5
1
0.000
1.000
0.75
1
0.000
1.000
1
1
Diverges
Diverges

2 Likes

Observations when playing would seem to indicate that the effect doesn’t nest…but now I may have to pay closer attention to make sure I didn’t miss anything.

1 Like

History – initially reflect yellow enemies broke Onatel:

I was just doing the challenging event, and attacking with Onatel on the offense team. My Onatel’s mana stucked at roughly 90%, and wouldn’t gain any mana beyond that point. The game won’t allow me to use mana potion on her as well - thinking she is at full mana.
Please fix this bug!!!
[Screenshot_20190412-001328]
This should be fixed by now according to Staff.

Wow? That’s a lot of interesting conversation @zephyr1 !! Thanks for linking!

2 Likes

My Onatel does not appear ever steal any mana from anyone!?!?!?