Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (FloorPacket.m_ID == Game.MsgFloorItem.MsgItemPacket.AuroraLotus)
- {
- var Array = killer.Player.View.Roles(Role.MapObjectType.Monster);
- foreach (var map_mob in Array)
- {
- var Mob = (map_mob as MonsterRole);
- byte revivers = SpellLevel >= 6 ? (byte)2 : (byte)1;
- foreach (var user in View.Roles(GameMap, Role.MapObjectType.Player))
- {
- if (Mob.HitPoints < 25)
- {
- ActionQuery action1;
- action1 = new ActionQuery()
- {
- ObjId = Mob.FloorPacket.m_UID,
- Type = ActionType.RemoveEntity
- };
- Mob.View.SendScreen(stream.ActionCreate(&action1), Mob.GMap);
- Mob.HitPoints = 0;
- Mob.FloorStampTimer = DateTime.Now;
- killer.Map.SetMonsterOnTile(Mob.X, Mob.Y, false);
- }
- if (revivers == 0)
- break;
- if (user.Alive == false)
- {
- if (Role.Core.GetDistance(user.X, user.Y, X, Y) < 5)
- {
- revivers--;
- var player = user as Role.Player;
- if (player.ContainFlag(MsgUpdate.Flags.SoulShackle) == false)
- player.Revive(stream);
- }
- }
- user.Send(GetArray(stream, false));
- }
- GMap.View.LeaveMap<Role.IMapObj>(this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement