Forums-->Queries and help-->
  
| Author | demons abilities |  			
mana stealing 
5 imps should steal 1.25 sp 
6 - 1.5 
7 - 1.75 
 
will it be rounded all to 2, all to 1, or 5 to 1 and 6,7 to 2 or its random? 
 
gating 
fsp 6 gives 44% gating 
so if i gate 9 hell horses i should gate 3.96 
why sometimes i gate only 3 instead 4?  |  For stealing mana, it will be rounded to the nearest natural number, up to a maximum of 10. 
 
For gating, the number (3.96) is rounded down to the nearest whole number. (3) 
So you will at least gate 3 hell horses. 
The decimals indicate the percentage chance you have of gating 1 more creature. 
Thus in your case, you will have 4% chance of gating 3 hell horses and 96% chance of gating 4.  |  | so why 7 spawns steal only one mana point. 7*0.25=1.75 and if rounded should be 2  |  | for velniukstis: I guess it steals 2  |  i fought 3 battles in a row and gated 7 spawns of 16. 
in all 3 battles 7 gated spawns slole only 1 mana. is this a bug or mistake in  rules? 
https://www.lordswm.com/warlog.php?warid=496178012 
https://www.lordswm.com/warlog.php?warid=496176773 
https://www.lordswm.com/warlog.php?warid=496152424        |  | for velniukstis: did you say gated spawns? I don't know if there's a different mana stealing rule for gated spawns but the formula given by shuwak I guess is right.  |  https://www.lordswm.com/help.php?section=32 
Mana stealer: 
When this creature gains its first turn, it steals a part of enemy lord's mana reserve and transfers it to its own lord. The amount of mana stolen is 0.25 per unit, rounded to the nearest natural number. 
 
 
Instead of "rounded" here should be "rounded down". And it should be mentioned that at least 1 mana is always stolen, i.e. I think that the formula is this: 
mana_drained = max(1,floor(n*0.25)) 
 
 
1) In this battle 
https://www.lordswm.com/warlog.php?lt=-1&warid=28178012 
16 gated Spawns drain 4 mana from angeleyes81. 
2 gated Spawns drain 1 mana from UlfSaaR. 
(it was not 7 as you said) 
max(1,floor(16*0.25)) = max(1,floor(4)) = max(1,4) = 4 
max(1,floor(2*0.25)) = max(1,floor(0.5)) = max(1,0) = 1 
 
2) In this battle 
https://www.lordswm.com/warlog.php?lt=-1&warid=28176773 
7 gated Spawns drain 1 mana from AngelOfTwilight. 
max(1,floor(7*0.25)) = max(1,floor(1.75)) = max(1,1) = 1 
 
3) In this battle 
https://www.lordswm.com/warlog.php?lt=-1&warid=28152424 
7 gated Spawns drain 1 mana from AngelOfTwilight. 
max(1,floor(7*0.25)) = max(1,floor(1.75)) = max(1,1) = 1          |  | for Robai: but rounded to nearest natural number does not mean it is always rounded down. Either the statement is wrong or there is a bug or the mana stealing has a different applicable rule with gated spawns.  |  | O_o  |  for Liongo: 
That's what I was saying: 
Instead of "rounded" here should be "rounded down". 
i.e. the description is not correct (actually this type of mistake I've seen in many places, i.e. functions "round", "floor", "ceil", "trunc", etc. are often mistakenly treated as the same).  |   
This topic is long since last update and considered obsolete for further discussions.  Back to topics list
 |