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); } }
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; } } }
void PotionVie::eff(Personnage& Perso) { Perso.recevoirSoins(a_regeneration,a_regeneration); }