Wassup,
Using for the Capture The Flag event i'm currently working on for 5165 i'm stuck on the following Damage nerfe.
The Damage nerfe for skills is the following:
if (C.Loc.Map == CaptureTheFlagMap)
if (SU.Info.ID != 1045)
return 8; <-- would make SS or FB skill do 8 damage
Now my question is to make this do the same for Melee Attack but I can't figure it out. For example this would be what I want:
if (C.Loc.Map == CaptureTheFlagMap)
if (MeleeAttacking) <-- just a guess
return 8; <-- would make any melee attack do 8 damage
I hope anyone can help me solve this issue so I can proceed in working on this event.
Thanks everyone!
Ok so I was looking at Skills IDs. I guess I'm gonna need to use this line
This code will make it stop any Melee damage.
if (AttackType == 2 || AttackType == 28)
{
if (GC.MyChar.Loc.Map == CaptureTheFlag)
return; <-- Need a way to add a damage there. Anyone?
Using for the Capture The Flag event i'm currently working on for 5165 i'm stuck on the following Damage nerfe.
The Damage nerfe for skills is the following:
if (C.Loc.Map == CaptureTheFlagMap)
if (SU.Info.ID != 1045)
return 8; <-- would make SS or FB skill do 8 damage
Now my question is to make this do the same for Melee Attack but I can't figure it out. For example this would be what I want:
if (C.Loc.Map == CaptureTheFlagMap)
if (MeleeAttacking) <-- just a guess
return 8; <-- would make any melee attack do 8 damage
I hope anyone can help me solve this issue so I can proceed in working on this event.
Thanks everyone!
Ok so I was looking at Skills IDs. I guess I'm gonna need to use this line
This code will make it stop any Melee damage.
if (AttackType == 2 || AttackType == 28)
{
if (GC.MyChar.Loc.Map == CaptureTheFlag)
return; <-- Need a way to add a damage there. Anyone?