shield ability initial work

This commit is contained in:
KayenEQ
2021-08-05 18:08:49 -04:00
parent c69446c460
commit 711e8f62ce
7 changed files with 144 additions and 74 deletions
+32 -4
View File
@@ -1583,6 +1583,22 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
break;
}
case SE_ExtendedShielding:
{
if (newbon->ExtendedShielding < base1) {
newbon->ExtendedShielding = base1;
}
break;
}
case SE_ShieldDuration:
{
if (newbon->ShieldDuration < base1) {
newbon->ShieldDuration = base1;
}
break;
}
// to do
case SE_PetDiscipline:
break;
@@ -1592,10 +1608,6 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
break;
case SE_SecondaryForte:
break;
case SE_ExtendedShielding:
break;
case SE_ShieldDuration:
break;
case SE_ReduceApplyPoisonTime:
break;
case SE_NimbleEvasion:
@@ -3474,6 +3486,22 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
new_bonus->Pet_Add_Atk += effect_value;
break;
case SE_ExtendedShielding:
{
if (new_bonus->ExtendedShielding < effect_value) {
new_bonus->ExtendedShielding = effect_value;
}
break;
}
case SE_ShieldDuration:
{
if (new_bonus->ShieldDuration < effect_value) {
new_bonus->ShieldDuration = effect_value;
}
break;
}
//Special custom cases for loading effects on to NPC from 'npc_spels_effects' table
if (IsAISpellEffect) {