Ejemplo n.º 1
0
        private void ApplyLightEffect()
        {
            int rad = (int)LightRadius;

            if (rad > 0)
            {
                CreaturesList crList = CurrentField.Creatures;
                int           num    = crList.Count;
                for (int i = 0; i < num; i++)
                {
                    NWCreature cr = crList.GetItem(i);
                    if (MathHelper.Distance(Location, cr.Location) <= rad && cr.Entry.Sign.Equals("Phausq"))
                    {
                        cr.Death(BaseLocale.GetStr(RS.rs_MonsterDestroyedByLight), null);
                    }
                }

                // TODO: message for player: \"The light burns you!\"
            }
        }