[Spells] Updates to spell field 'cast not stands' to ignore casting restrictions (#1938)

* test

* complete

* Update effects.cpp

* Update spells.cpp

* Update effects.cpp

* [Spells] Support for bards using Disciplines while casting or /melody.

Support for spell field 'cast not standing' not allow casting from divine aura

* [Spells] Support for bards using Disciplines while casting or /melody.

DA bypass logic for spells with field 'cast_not_standing'

* updates

* stun and mez bypass

* Update spdat.cpp

* Update spdat.cpp

* Update spells.cpp
This commit is contained in:
KayenEQ
2022-01-28 22:05:45 -05:00
committed by GitHub
parent afdbc0ce80
commit 44b8c9203a
6 changed files with 26 additions and 9 deletions
+12
View File
@@ -1671,3 +1671,15 @@ bool CastRestrictedSpell(int spellid)
return false;
}
}
bool IgnoreCastingRestriction(int32 spell_id) {
/*
field 'cast_not_standing' allows casting when sitting, stunned, mezed, Divine Aura, through SPA 343 Interrupt casting
Likely also allows for casting while feared, but need to confirm. Possibly also while charmed.
This field also allows for damage to ignore DA immunity.
*/
if (spells[spell_id].cast_not_standing) {
return true;
}
return false;
}