ao-libre / ao-libre/ao-server

Intervalo hechizos no se usa en el codigo

未關閉
#225 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Visual Basic 6.0
星號
52
分支
48
PR 合併指標
30 天內沒有已合併 PR

描述

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](https://user-images.githubusercontent.com/5874806/65469315-27d48300-debb-11e9-82f6-dfd3fd57f1cd.png)

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。