mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-02 22:03:52 +00:00
invis updates (#2004)
This commit is contained in:
parent
615f4a5304
commit
677d595c9d
@ -266,7 +266,8 @@ bool IsInvisSpell(uint16 spell_id)
|
||||
IsEffectInSpell(spell_id, SE_Invisibility2) ||
|
||||
IsEffectInSpell(spell_id, SE_InvisVsUndead) ||
|
||||
IsEffectInSpell(spell_id, SE_InvisVsUndead2) ||
|
||||
IsEffectInSpell(spell_id, SE_InvisVsAnimals)) {
|
||||
IsEffectInSpell(spell_id, SE_InvisVsAnimals) ||
|
||||
IsEffectInSpell(spell_id, SE_ImprovedInvisAnimals)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -3983,21 +3983,7 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app)
|
||||
return;
|
||||
}
|
||||
|
||||
if (invisible) {
|
||||
ZeroInvisibleVars(InvisType::T_INVISIBLE);
|
||||
BuffFadeByEffect(SE_Invisibility);
|
||||
BuffFadeByEffect(SE_Invisibility2);
|
||||
}
|
||||
|
||||
// Hack for broken RoF2 which allows casting after a zoned IVU/IVA
|
||||
if (invisible_undead) {
|
||||
BuffFadeByEffect(SE_InvisVsUndead);
|
||||
BuffFadeByEffect(SE_InvisVsUndead2);
|
||||
}
|
||||
if (invisible_animals) {
|
||||
BuffFadeByEffect(SE_InvisVsAnimals);
|
||||
BuffFadeByEffect(SE_ImprovedInvisAnimals);
|
||||
}
|
||||
BreakInvisibleSpells();
|
||||
|
||||
CastSpell_Struct* castspell = (CastSpell_Struct*)app->pBuffer;
|
||||
|
||||
|
||||
@ -3239,6 +3239,12 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
case SE_FFItemClass:
|
||||
case SE_SpellEffectResistChance:
|
||||
case SE_SeeInvis:
|
||||
case SE_Invisibility:
|
||||
case SE_Invisibility2:
|
||||
case SE_InvisVsAnimals:
|
||||
case SE_ImprovedInvisAnimals:
|
||||
case SE_InvisVsUndead:
|
||||
case SE_InvisVsUndead2:
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user