Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intervalo hechizos no se usa en el codigo #225

Open
RecoX opened this issue Sep 23, 2019 · 0 comments
Open

Intervalo hechizos no se usa en el codigo #225

RecoX opened this issue Sep 23, 2019 · 0 comments

Comments

@RecoX
Copy link
Member

RecoX commented Sep 23, 2019

El problema es que el intervalo para lanzar hechizos no se utiliza realmente, aqui una captura de donde se utiliza

Screen Shot 2019-09-24 at 11 04 39 AM

La funcion NpcLanzaSpellSobreUser empieza asi lo cual no estaria seguro que este bien ya que hace un If para saber si puedo atacar npcs.

Sub NpcLanzaSpellSobreUser(ByVal NpcIndex As Integer, _
                           ByVal UserIndex As Integer, _
                           ByVal Spell As Integer, _
                           Optional ByVal DecirPalabras As Boolean = False, _
                           Optional ByVal IgnoreVisibilityCheck As Boolean = False)

    If Not IntervaloPermiteAtacarNpc(NpcIndex) Then Exit Sub

    With UserList(UserIndex)
    
        ' Doesn't consider if the user is hidden/invisible or not.
        If Not IgnoreVisibilityCheck Then
            If UserList(UserIndex).flags.invisible = 1 Or UserList(UserIndex).flags.Oculto = 1 Then Exit Sub

        End If

Hay que hacer que el intervalo de hechizos sea usado desde el archivo de configuracion y verificar que todos los demas valores de intervalos se usen y funcionen correctamente.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant