Ejemplo n.º 1
0
Magie::eff(Personnage& Cible, Personnage& Lanceur)
{
    if(Lanceur.utiliserPa(a_pa) && Lanceur.utiliserMana(a_mana)) {
        Cible.recevoirSoins(a_regeneration, a_regeneration);
        Cible.recevoirDegatsMagiques(a_degats, a_degats);
    }
}
Ejemplo n.º 2
0
bool PotionSoinGenerique::eff()
{
	if (!stableEtCible())
		return false;
	else
	{
		Personnage *moi = parent->moi;
		bool a = enlever1potion();
		if (a)
		{
			moi->recevoirSoins(healMin, healMax);
			return true;
		}
		else
		{
			return false;
		}
	}
}
Ejemplo n.º 3
0
void PotionVie::eff(Personnage& Perso)
{
    Perso.recevoirSoins(a_regeneration,a_regeneration);
}