
一款新的{1}\n”, amount, name, decrease_attack);
is_power_increase = true;
} else {
Console::log(
“{0} 的攻击力增加了 {2} 点,当前生命值为 {1}\n”, name, health_point,
increase_attack);
Console::log(“且有{0}点攻击力随时准备发射\n”, decrease_attack);
}
}

}
bool can_be_attack() override {
return health_point > 0 && !is_power_increase;
}
std::pair defend(int damage) override {
element = utils.checkIfElementPresent(driver, buyButton, “unable to locate buy button”);
utils.scrollDownforElement(driver, element);

return element;
}
}
////draft
//public void goToAgentValuation() {
// utils.clickLink(agentValuation,"agent valuation link not fuond" );

//}
//public void gotobuy() {
// utils.clickLink(buy, "buy link id not found");
//}
}









