mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
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:
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user