mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
fix for LimitCombatSkills
fix for Extended Inginuity table data
This commit is contained in:
@@ -675,6 +675,20 @@ bool IsDiscipline(uint16 spell_id)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsCombatSkill(uint16 spell_id)
|
||||
{
|
||||
if (!IsValidSpell(spell_id))
|
||||
return false;
|
||||
|
||||
//Check if Discipline OR melee proc (from non-castable spell)
|
||||
if ((spells[spell_id].mana == 0 &&
|
||||
(spells[spell_id].EndurCost || spells[spell_id].EndurUpkeep)) ||
|
||||
((spells[spell_id].cast_time == 0) && (spells[spell_id].recast_time == 0) && (spells[spell_id].recovery_time == 0)))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsResurrectionEffects(uint16 spell_id)
|
||||
{
|
||||
// spell id 756 is Resurrection Effects spell
|
||||
|
||||
@@ -800,6 +800,7 @@ int32 CalculateCorruptionCounters(uint16 spell_id);
|
||||
int32 CalculateCounters(uint16 spell_id);
|
||||
bool IsDisciplineBuff(uint16 spell_id);
|
||||
bool IsDiscipline(uint16 spell_id);
|
||||
bool IsCombatSkill(uint16 spell_id);
|
||||
bool IsResurrectionEffects(uint16 spell_id);
|
||||
bool IsRuneSpell(uint16 spell_id);
|
||||
bool IsMagicRuneSpell(uint16 spell_id);
|
||||
|
||||
Reference in New Issue
Block a user