Additional functionality for damage shield and skill damage taken

effects va the npc_spell_effects table. See change log and wiki.
This commit is contained in:
KayenEQ
2014-06-13 05:32:41 -04:00
parent a1adda36fa
commit 216113e14b
4 changed files with 36 additions and 8 deletions
+4 -1
View File
@@ -818,7 +818,7 @@ int GetSpellEffectDescNum(uint16 spell_id)
return -1;
}
DmgShieldType GetDamageShieldType(uint16 spell_id)
DmgShieldType GetDamageShieldType(uint16 spell_id, int32 DSType)
{
// If we have a DamageShieldType for this spell from the damageshieldtypes table, return that,
// else, make a guess, based on the resist type. Default return value is DS_THORNS
@@ -841,6 +841,9 @@ DmgShieldType GetDamageShieldType(uint16 spell_id)
}
}
else if (DSType)
return (DmgShieldType) DSType;
return DS_THORNS;
}