عرض مشاركة واحدة
قديم 2020-01-25, 02:01 AM
المشاركة 2
Hassan Emprator
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ChargingVortex بتضرب بأرقام عاليه جدا
جرب تبدل الاسكله دي بي الي عندك


كود:
 case 1260:
                                        {
                                            if (
CanUseSpell(spellattacker.Owner))
                                            {
                                                
spell.UseStamina 20;
                                                
PrepareSpell(spellattacker.Owner);
                                                
Game.Attacking.InLineAlgorithm ila = new MrHassan.Game.Attacking.InLineAlgorithm(attacker.X,
                                            
Xattacker.YY, (byte)spell.RangeInLineAlgorithm.Algorithm.DDA);
                                                
SpellUse suse = new SpellUse(true);
                                                
suse.Attacker attacker.UID;
                                                
suse.SpellID SpellID;
                                                
suse.SpellLevel attacker.Owner.Spells[SpellID].Level;
                                                
suse.X;
                                                
suse.Y;
                                                
//suse.SpellLevelHu = client_Spell.LevelHu2;
                                                
foreach (Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
                                                {
                                                    if (
_obj == null)
                                                        continue;
                                                    if (
_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Entity)
                                                    {
                                                        
attacked _obj as Entity;
                                                        if (
ila.InLine(attacked.Xattacked.Y))
                                                        {
                                                            if (!
CanAttack(attackerattackedspellattack.AttackType == Attack.Melee))
                                                                continue;

                                                            
attack.Effect1 Attack.AttackEffects1.None;
                                                            
uint damage Game.Attacking.Calculate.Melee(attackerattackedref attackclient_Spell.LevelHu2);
                                                            
damage = (uint)(damage 0.1);

                                                            
suse.Effect1 attack.Effect1;
                                                            
attack.Damage damage;

                                                            
ReceiveAttack(attackerattackedattackref damagespell);

                                                            
suse.AddTarget(attackeddamageattack);
                                                        }
                                                    }
                                                    else if (
_obj.MapObjType == MapObjectType.SobNpc)
                                                    {
                                                        
attackedsob _obj as SobNpcSpawn;

                                                        if (
ila.InLine(attackedsob.Xattackedsob.Y))
                                                        {
                                                            if (!
CanAttack(attackerattackedsobspell))
                                                                continue;

                                                            
attack.Effect1 Attack.AttackEffects1.None;
                                                            
uint damage Game.Attacking.Calculate.Melee(attackerattackedsobref attack);
                                                            
attack.Damage damage;

                                                            
ReceiveAttack(attackerattackedsobattackdamagespell);

                                                            
suse.AddTarget(attackedsobdamageattack);
                                                        }
                                                    }
                                                }
                                                
attacker.Owner.SendScreen(susetrue);
                                            }
                                            break;
                                        }