can someone tell me how to to code
1. Terato Dragon will attack multiple player around him in just 1 blow...
meaning not single player affected...
I have made like this but I know its error or do you have Idea or some clue just a guide to do this...
1. Terato Dragon will attack multiple player around him in just 1 blow...
meaning not single player affected...
I have made like this but I know its error or do you have Idea or some clue just a guide to do this...
Quote:
Sector sector = new Sector(attacker.X, attacker.Y, X, Y);
sector.Arrange(spell.Sector, spell.Distance);
foreach (Interfaces.IMapObject _obj in attacker.Monster.Screen.Objects)
{
if (_obj == null)
continue;
if ( _obj.MapObjType == MapObjectType.Player)
{
attacked = _obj as Entity;
if (sector.Inside(attacked.X, attacked.Y))
{
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Game.Attacking.Calculate.Ranged(attacker, attacked, spell, ref attack);
ReceiveAttack(attacker, attacked, attack, damage, spell);
suse.Targets.Add(attacked.UID, damage);
}
}
}