Passer au contenu principal
Obtenir les Points de Vie actuels du personnage en pourcentage.

🎮 Méthode

fightCharacter:getLifePointsP()

💎 Valeur de retour

TypeDescription
intPourcentage de PV (0100).

💡 Exemple

-- Soigner si les PV sont inférieurs à 50%
if fightCharacter:getLifePointsP() < 50 then
    local myCell = fightCharacter:getCellId()
    if fightAction:canCastSpellOnCell(myCell, 4947, myCell) == 0 then
        fightAction:castSpellOnCell(4947, myCell)  -- soin sur soi-même
    end
end