MCPcopy Create free account
hub / github.com/EasyRPG/Player / HasAttackAll

Method HasAttackAll

src/game_actor.cpp:1387–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1385}
1386
1387bool Game_Actor::HasAttackAll(Weapon weapon) const {
1388 if (GetWeapon() == nullptr && Get2ndWeapon() == nullptr) {
1389 return dbActor->easyrpg_attack_all;
1390 }
1391 bool rc = false;
1392 ForEachEquipment<true, false>(GetWholeEquipment(), [&](auto& item) { rc |= item.attack_all; }, weapon);
1393 return rc;
1394}
1395
1396bool Game_Actor::AttackIgnoresEvasion(Weapon weapon) const {
1397 if (GetWeapon() == nullptr && Get2ndWeapon() == nullptr) {

Callers 6

vStartMethod · 0.45
AttackSelectedMethod · 0.45
SelectAutoBattleActionFunction · 0.45
game_actor.cppFile · 0.45
testWeapon3Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected