canCastSpell

🔍 Prototype

fight.canCastSpell(spellId, launchCellId, targetCellId)

📝 Paramètres

Paramètre
Type
Description
  • spellId

  • int

  • L'identifiant du sort.

  • launchCellId

  • int

  • La cellule du lancement du sort.

  • targetCellId

  • int

  • La cellule ciblée.

🔙 Retour

Type
Description
  • enum

  • enum_SpellCastError.NoError

  • enum_SpellCastError.DontHaveSpell

  • enum_SpellCastError.UnknownError

  • enum_SpellCastError.DataNotInitialized

  • enum_SpellCastError.HasCooldown

  • enum_SpellCastError.HasInitialCooldown

  • enum_SpellCastError.MaxCastPerTurnReached

  • enum_SpellCastError.MaxCastPerTargetReached

  • enum_SpellCastError.BadState

  • enum_SpellCastError.CellIsOccupied

  • enum_SpellCastError.CellIsFree

  • enum_SpellCastError.SummonLimitReached

  • enum_SpellCastError.NotEnoughAP

  • enum_SpellCastError.NotInRange

  • enum_SpellCastError.NotInLine

  • enum_SpellCastError.NotInDiagonal

  • enum_SpellCastError.NotInLineAndNotInDiagonal

  • enum_SpellCastError.NotInLineOfSight

Mis à jour