mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 08:47:16 +00:00
Add a CastWhileInvis check and fix some issues
This commit is contained in:
1 parent
cd9a7f1d5d
commit
f428a8a56a
4 files changed
+17
-3
No files matched your search
@@ -1111,6 +1111,16 @@ bool IsStackableDot(uint16 spell_id)
|
||||
return IsEffectInSpell(spell_id, SE_CurrentHP) || IsEffectInSpell(spell_id, SE_GravityEffect);
|
||||
}
|
||||
|
||||
bool IsCastWhileInvis(uint16 spell_id)
|
||||
{
|
||||
if (!IsValidSpell(spell_id))
|
||||
return false;
|
||||
const auto &spell = spells[spell_id];
|
||||
if (spell.sneak)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32 GetNimbusEffect(uint16 spell_id)
|
||||
{
|
||||
if (IsValidSpell(spell_id))
|
||||
|
||||
Reference in new issue
Block a user