Nimbus effects will now be reapplied after zoning.

Nimbus effects will now fade when associated buff is removed.
Fix for ReduceAllDamage function.
This commit is contained in:
KayenEQ
2014-09-15 16:05:57 -04:00
parent e256175ce6
commit 03485ef1e0
5 changed files with 24 additions and 3 deletions
+9
View File
@@ -4375,6 +4375,15 @@ void Mob::SpreadVirus(uint16 spell_id, uint16 casterID)
void Mob::RemoveNimbusEffect(int effectid)
{
if (effectid == nimbus_effect1)
nimbus_effect1 = 0;
else if (effectid == nimbus_effect2)
nimbus_effect2 = 0;
else if (effectid == nimbus_effect3)
nimbus_effect3 = 0;
EQApplicationPacket* outapp = new EQApplicationPacket(OP_RemoveNimbusEffect, sizeof(RemoveNimbusEffect_Struct));
RemoveNimbusEffect_Struct* rne = (RemoveNimbusEffect_Struct*)outapp->pBuffer;
rne->spawnid = GetID();