mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 17:26:30 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d18a30b047 | |||
| 359f90a987 |
@@ -246,6 +246,8 @@
|
|||||||
|
|
||||||
#define MAX_INVISIBILTY_LEVEL 254
|
#define MAX_INVISIBILTY_LEVEL 254
|
||||||
|
|
||||||
|
#define NO_ROOT_BREAK_SKILL_ID 200 //Live mechanic where if skill id in a spell is set to 200 it will prevent that spell from having a chance to break roots.
|
||||||
|
|
||||||
//instrument item id's used as song components
|
//instrument item id's used as song components
|
||||||
#define INSTRUMENT_HAND_DRUM 13000
|
#define INSTRUMENT_HAND_DRUM 13000
|
||||||
#define INSTRUMENT_WOODEN_FLUTE 13001
|
#define INSTRUMENT_WOODEN_FLUTE 13001
|
||||||
|
|||||||
+3
-1
@@ -4439,9 +4439,10 @@ void Mob::CommonDamage(Mob* attacker, int64 &damage, const uint16 spell_id, cons
|
|||||||
|
|
||||||
if (IsValidSpell(spell_id) && !iBuffTic) {
|
if (IsValidSpell(spell_id) && !iBuffTic) {
|
||||||
//see if root will break
|
//see if root will break
|
||||||
if (IsRooted() && !FromDamageShield) // neotoyko: only spells cancel root
|
if (IsRooted() && !FromDamageShield && spells[spell_id].skill != NO_ROOT_BREAK_SKILL_ID) { // neotoyko: only spells cancel root
|
||||||
TryRootFadeByDamage(buffslot, attacker);
|
TryRootFadeByDamage(buffslot, attacker);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (!IsValidSpell(spell_id))
|
else if (!IsValidSpell(spell_id))
|
||||||
{
|
{
|
||||||
//increment chances of interrupting
|
//increment chances of interrupting
|
||||||
@@ -6223,6 +6224,7 @@ bool Mob::TryRootFadeByDamage(int buffslot, Mob* attacker) {
|
|||||||
- If multiple roots on target, always and only checks first root slot and if broken only removes that slots root.
|
- If multiple roots on target, always and only checks first root slot and if broken only removes that slots root.
|
||||||
- Only roots on determental spells can be broken by damage.
|
- Only roots on determental spells can be broken by damage.
|
||||||
- Root break chance values obtained from live parses.
|
- Root break chance values obtained from live parses.
|
||||||
|
- If casting skill is set to 200 then spell can not break root
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!attacker || !spellbonuses.Root[SBIndex::ROOT_EXISTS] || spellbonuses.Root[SBIndex::ROOT_BUFFSLOT] < 0) {
|
if (!attacker || !spellbonuses.Root[SBIndex::ROOT_EXISTS] || spellbonuses.Root[SBIndex::ROOT_BUFFSLOT] < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user