Difference between revisions of "Spell Penetration"
Line 37: | 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. |
Revision as of 23:41, 30 October 2007
Barrier Proficiency | Grand Enchanter | Legendary Commander | Augment Summoning | Grand Conqueror
This skill gives you the ability to pierce your enemies barriers and creature spell resistance. It decreases target mages barrier resistance (if he has any) and spell resistance of his entire army (in battle) (Unconfirmed). Also, reduces their color resistance (such as that granted by Mind Bar).
Effects
- Level 1-5 : ? (possibly -1% per level)
- Level 6-10 : ? (possibly -2% per level)
- Level 11-15 : ? (possibly -3% per level)
- Level 16-20 : ? (possibly -4% per level)
Bonuses
- Level 10+ : Unknown if existing.
- Level 15+ : Unknown if existing.
- Level 20 : Unknown if existing.
Level By Level
Unknown
User experience
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.
(Above experiences were before the effect of the skill was doubled)
Do not suggest this skill, except for warmages that plan to cast a lot of DA and VE. In which case, this skill is great, as having even one less VE blocked by barriers is extremely useful.
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.