Difference between revisions of "Spell Penetration"

From TheReincarnation
Jump to: navigation, search
(Effects)
 
(17 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
{{skillnav}}
 
{{skillnav}}
  
This [[Skills|skill]] gives you the ability to pierce your enemies barriers and creature spell resistance. It decreases target mages [[Barriers|barrier resistance]] (if he has any) and spell resistance of his entire army (in battle).  
+
This [[Skills|skill]] gives your spells the ability to pierce your enemies barriers and spell resistance. It decreases target mages' [[Barriers|barrier resistance]] to spells.  
  
<br>''Effects''<br>
+
==Effects==
 
+
*Reduces enemy barrier resistance to your spells by 1.25% per level.
* Level 1-5 : ? (most likely -0.5% per level)
+
*Reduces enemy spell resistance to your spells by 1.25% per level. (Resistances gained from enchants like Mind Bar, Sunray,etc.  
* Level 6-10 : ? (most likely -1% per level)
+
**Only affects kingdom spell resistance, does not effect army unit resistances.
* Level 11-15 : ? (most likely -1.5% per level)
+
**Does not affect items.
* Level 16-20 : ? (most likely -2% per level)
 
 
 
<br>''Bonuses''<br>
 
 
 
* Level 10+ : Unknown if existing.
 
* Level 15+ : Unknown if existing.
 
* Level 20 : Unknown if existing.
 
 
 
<br>''Level By Level''<br>
 
 
 
Unknown
 
 
 
<br>''User experience''<br>
 
 
 
This is one of the more obscure skills; its effects are hard to test and requires a lot of samples. One official description claimed decrease in unit resistances and another does not. I've caried this into level 19 now and so far this skill has had no real noticable effect.
 
Most likely it is 0.5% less opponent barrier resist / level (spells only) which should give you a wooping 10% at level 20. Assuming it affects unit resistances also compare that with e.g. resist elements for a blue (+-15% more erad resist) and this is quite possibly a skill that didn't make it to the trashcan due to the problem of deriving its effects. Unless devs clarify the effects, stay away from this one.
 
  
 +
==Level By Level==
 +
*Level 1: -1.25%
 +
*Level 2: -2.5%
 +
*Level 3: -3.75%
 +
*Level 4: -5%
 +
*Level 5: -6.25%
 +
*Level 6: -7.5%
 +
*Level 7: -8.75%
 +
*Level 8: -10%
 +
*Level 9: -11.25%
 +
*Level 10: -12.5%
 +
*Level 11: -13.75%
 +
*Level 12: -15%
 +
*Level 13: -16.25%
 +
*Level 14: -17.5%
 +
*Level 15: -18.75%
 +
*Level 16: -20%
 +
*Level 17: -21.25%
 +
*Level 18: -22.5%
 +
*Level 19: -23.75%
 +
*Level 20: -25%
  
 
----
 
----
Line 32: Line 37:
 
----
 
----
 
[[Category:Skills]]
 
[[Category:Skills]]
 +
 +
 +
if you can read code:
 +
 +
sub spell_resisted {
 +
  my $caster_mage = shift;
 +
  my $target_mage = shift;
 +
  my $spell_color = shift;
 +
  my $barrier_resistance = $target_mage->getBarrierResistance() / 100;
 +
  my $sl_resistance = 0;
 +
  my $barrier_piercing = $caster_mage->{mage_spellpiercing} / 100;
 +
 
 +
  my $color_resistance = 0;
 +
  $color_resistance = $target_mage->getResistanceNether() if $spell_color eq 'NETHER';
 +
  $color_resistance = $target_mage->getResistancePhantasm() if $spell_color eq 'PHANTASM';
 +
  $color_resistance = $target_mage->getResistanceAscendant() if $spell_color eq 'ASCENDANT';
 +
  $color_resistance = $target_mage->getResistanceVerdant() if $spell_color eq 'VERDANT';
 +
  $color_resistance = $target_mage->getResistanceEradication() if $spell_color eq 'ERADICATION';
 +
 
 +
  $color_resistance = 75 if $color_resistance > 75;
 +
 
 +
  #Spell Penetration also reduces color resistance
 +
  $color_resistance -= $caster_mage->{mage_spellpiercing};
 +
  $color_resistance = 0 if $color_resistance < 0;
 +
 
 +
  $color_resistance /= 100;
 +
 +
  #check barriers
 +
  if ( rand() < ($barrier_resistance + $sl_resistance - $barrier_piercing)) {
 +
      return 0;
 +
  }
 +
 
 +
  #check resistances
 +
  if (rand() < $color_resistance) {
 +
      return 1;
 +
  }
 +
 
 +
  #not blocked
 +
  return 2;
 +
}
 +
 +
that is how blocking works.  now as far as piercing ehh.

Latest revision as of 02:44, 14 March 2013

Encyclopedia | Units | Spells | Items | Heroes | Skills | Buildings | Guides
Icon ASCENDANT.gif Legendary Artificer | Icon VERDANT.gif Animal Mastery | Icon ERADICATION.gif Spell Penetration | Icon NETHER.gif Undead Mastery | Icon PHANTASM.gif Spell Mastery

Icon PLAIN.gif Barrier Proficiency | Icon PLAIN.gif Grand Enchanter | Icon PLAIN.gif Legendary Commander | Icon PLAIN.gif Augment Summoning | Icon PLAIN.gif Grand Conqueror



This skill gives your spells the ability to pierce your enemies barriers and spell resistance. It decreases target mages' barrier resistance to spells.

Effects

  • Reduces enemy barrier resistance to your spells by 1.25% per level.
  • Reduces enemy spell resistance to your spells by 1.25% per level. (Resistances gained from enchants like Mind Bar, Sunray,etc.
    • Only affects kingdom spell resistance, does not effect army unit resistances.
    • Does not affect items.

Level By Level

  • Level 1: -1.25%
  • Level 2: -2.5%
  • Level 3: -3.75%
  • Level 4: -5%
  • Level 5: -6.25%
  • Level 6: -7.5%
  • Level 7: -8.75%
  • Level 8: -10%
  • Level 9: -11.25%
  • Level 10: -12.5%
  • Level 11: -13.75%
  • Level 12: -15%
  • Level 13: -16.25%
  • Level 14: -17.5%
  • Level 15: -18.75%
  • Level 16: -20%
  • Level 17: -21.25%
  • Level 18: -22.5%
  • Level 19: -23.75%
  • Level 20: -25%

Return to:
- Encyclopedia
- Skills



if you can read code:

sub spell_resisted {

  my $caster_mage = shift;
  my $target_mage = shift;
  my $spell_color = shift;
  my $barrier_resistance = $target_mage->getBarrierResistance() / 100;
  my $sl_resistance = 0;
  my $barrier_piercing = $caster_mage->{mage_spellpiercing} / 100;
  
  my $color_resistance = 0;
  $color_resistance = $target_mage->getResistanceNether() if $spell_color eq 'NETHER';
  $color_resistance = $target_mage->getResistancePhantasm() if $spell_color eq 'PHANTASM';
  $color_resistance = $target_mage->getResistanceAscendant() if $spell_color eq 'ASCENDANT';
  $color_resistance = $target_mage->getResistanceVerdant() if $spell_color eq 'VERDANT';
  $color_resistance = $target_mage->getResistanceEradication() if $spell_color eq 'ERADICATION';
  
  $color_resistance = 75 if $color_resistance > 75;
  
  #Spell Penetration also reduces color resistance
  $color_resistance -= $caster_mage->{mage_spellpiercing};
  $color_resistance = 0 if $color_resistance < 0;
  
  $color_resistance /= 100;
  #check barriers
  if ( rand() < ($barrier_resistance + $sl_resistance - $barrier_piercing)) {
     return 0;
  }
  
  #check resistances
  if (rand() < $color_resistance) {
     return 1;
  }
  
  #not blocked
  return 2;

}

that is how blocking works. now as far as piercing ehh.