mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-13 06:42:26 +00:00
Should dismount if mounted and casting and FD spell
This commit is contained in:
parent
f720e51585
commit
4096ee1f1e
@ -1625,13 +1625,14 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
break;
|
||||
|
||||
if(IsClient()) {
|
||||
CastToClient()->SetHorseId(0); // dismount if have horse
|
||||
|
||||
if (zone->random.Int(0, 99) > spells[spell_id].base[i]) {
|
||||
CastToClient()->SetFeigned(false);
|
||||
entity_list.MessageClose_StringID(this, false, 200, 10, STRING_FEIGNFAILED, GetName());
|
||||
}
|
||||
else
|
||||
} else {
|
||||
CastToClient()->SetFeigned(true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user