[Spells] Update to SPA 58 SE_Levitate to support limit value (#1875)

* [Spells] Update to SPA 58 SE_Levitate to support limit value

* [Spells] Update to SPA 58 SE_Levitate to support limit value

apply same on zone in
This commit is contained in:
KayenEQ 2021-12-10 12:20:25 -05:00 committed by GitHub
parent 42f439c4b7
commit eb2b4fd9e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -743,7 +743,12 @@ void Client::CompleteConnect()
}
}
else {
SendAppearancePacket(AT_Levitate, 2);
if (spell.limit_value[x1] == 1) {
SendAppearancePacket(AT_Levitate, EQ::constants::GravityBehavior::LevitateWhileRunning, true, true);
}
else {
SendAppearancePacket(AT_Levitate, EQ::constants::GravityBehavior::Levitating, true, true);
}
}
break;
}

View File

@ -1369,7 +1369,12 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
#endif
//this sends the levitate packet to everybody else
//who does not otherwise receive the buff packet.
SendAppearancePacket(AT_Levitate, 2, true, true);
if (spells[spell_id].limit_value[i] == 1) {
SendAppearancePacket(AT_Levitate, EQ::constants::GravityBehavior::LevitateWhileRunning, true, true);
}
else {
SendAppearancePacket(AT_Levitate, EQ::constants::GravityBehavior::Levitating, true, true);
}
break;
}