Quote:
Originally Posted by kakamankoko
if (countofyourclones > 0)
{
send generaldata packet with id 135 and your clone`s uid to remove it
}
else
{
do the skill
}
|
it already exists like that
PHP Code:
if (attacker.MyClones.Count > 0)
{
foreach (var item in attacker.MyClones.Values)
{
attacker.Owner.Map.RemoveEntity(item);
Data data = new Data(true);
data.UID = item.UID;
data.ID = Network.GamePackets.Data.RemoveEntity;
item.MonsterInfo.SendScreen(data);
}
attacker.MyClones.Clear();
return;
btw the skill work good but
and it dosent repeat exept when monsters or players attack me and i try to use skill after they attacked me
mean if i use skill and got 2 shadow , if i use it again the shadow will disaper
but if i got 2 shadow and go beside monsters and monsters attacked me and i try to use skill i will got more 2 shadow