mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Feature] Add Type 49545 to Spell Resistrictions (#2436)
This commit is contained in:
+12
-1
@@ -8066,7 +8066,18 @@ bool Mob::PassCastRestriction(int value)
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case IS_END_OR_MANA_BELOW_10_PCT: {
|
||||
if (IsNonSpellFighterClass(GetClass()) && CastToClient()->GetEndurancePercent() <= 10) {
|
||||
return true;
|
||||
}
|
||||
else if (!IsNonSpellFighterClass(GetClass()) && GetManaRatio() <= 10) {
|
||||
return true;
|
||||
}
|
||||
else if (IsHybridClass(GetClass()) && CastToClient()->GetEndurancePercent() <= 10) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case IS_END_OR_MANA_BELOW_30_PCT:
|
||||
case IS_END_OR_MANA_BELOW_30_PCT2: {
|
||||
if (IsNonSpellFighterClass(GetClass()) && CastToClient()->GetEndurancePercent() <= 30) {
|
||||
|
||||
Reference in New Issue
Block a user