Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Bug Fix] DamageMP Error


Valentine90
 Share

Recommended Posts

**Sorry my english**

When a player uses a spell in an area that affects MP, the magic affects you.

**Open Server**

**1** - In **modCombat**, look for:

```
Case SPELL_TYPE_HEALHP, SPELL_TYPE_HEALMP, SPELL_TYPE_DAMAGEMP
```

**2 -** Scroll down to find:

```
For i = 1 To Player_HighIndex

If IsPlaying(i) Then

If GetPlayerMap(i) = GetPlayerMap(index) Then

If isInRange(AoE, x, y, GetPlayerX(i), GetPlayerY(i)) Then

SpellPlayer_Effect VitalType, increment, i, Vital, spellNum

DidCast = True

End If

End If

End If

Next
```

**3 -** Replace with:

```
For i = 1 To Player_HighIndex

If IsPlaying(i) Then

If i <> index Then

If GetPlayerMap(i) = GetPlayerMap(index) Then

If isInRange(AoE, x, y, GetPlayerX(i), GetPlayerY(i)) Then

SpellPlayer_Effect VitalType, increment, i, Vital, spellNum

DidCast = True

End If

End If

End If

End If

Next
```

**Créditos:**

Valentine
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...