prohunter33
Knight
Behavior on Demise:
The Spell damage increase from Arcane empowerment and Reaper form only work with magery spells. The reasoning for this is because magery is the only one that calls multiple sources for the spell damage calculations, while all of the other skills only call
which only includes items.
Also the sdi from Reaper form is factored in after the PvP sdi cap for magery.
Behavior on osi:
The sdi from skill abilities should work on all abilities that is effected by SDI.
Supporting Documentation (URLs):
This is what it checks for SDI right now.
The Spell damage increase from Arcane empowerment and Reaper form only work with magery spells. The reasoning for this is because magery is the only one that calls multiple sources for the spell damage calculations, while all of the other skills only call
Code:
AosAttributes.GetValue( Caster, AosAttribute.SpellDamage )
Also the sdi from Reaper form is factored in after the PvP sdi cap for magery.
Behavior on osi:
The sdi from skill abilities should work on all abilities that is effected by SDI.
Supporting Documentation (URLs):
This is what it checks for SDI right now.
Code:
public static int GetValue( Mobile m, AosAttribute attribute )
{
if( !Core.AOS )
return 0;
List<Item> items = m.Items;
int value = 0;
for( int i = 0; i < items.Count; ++i )
{
Item obj = items[i];
if( obj is BaseWeapon )
{
AosAttributes attrs = ((BaseWeapon)obj).Attributes;
if( attrs != null )
value += attrs[attribute];
if( attribute == AosAttribute.Luck )
value += ((BaseWeapon)obj).GetLuckBonus();
}
else if( obj is BaseArmor )
{
AosAttributes attrs = ((BaseArmor)obj).Attributes;
if( attrs != null )
value += attrs[attribute];
if( attribute == AosAttribute.Luck )
value += ((BaseArmor)obj).GetLuckBonus();
}
else if( obj is BaseJewel )
{
AosAttributes attrs = ((BaseJewel)obj).Attributes;
if( attrs != null )
value += attrs[attribute];
}
else if( obj is BaseClothing )
{
AosAttributes attrs = ((BaseClothing)obj).Attributes;
if( attrs != null )
value += attrs[attribute];
}
else if( obj is Spellbook )
{
AosAttributes attrs = ((Spellbook)obj).Attributes;
if( attrs != null )
value += attrs[attribute];
}
else if( obj is BaseQuiver )
{
AosAttributes attrs = ((BaseQuiver)obj).Attributes;
if( attrs != null )
value += attrs[attribute];
}
else if ( obj is BaseTalisman )
{
AosAttributes attrs = ((BaseTalisman)obj).Attributes;
if (attrs != null)
value += attrs[attribute];
}
}
return value;
}