add DISABLE_INTERFERENCE behavior flag

This commit is contained in:
Martin Michelsen
2022-12-13 23:39:13 -08:00
parent 79374d3dd1
commit ae49ca0189
3 changed files with 13 additions and 0 deletions
+10
View File
@@ -3370,6 +3370,11 @@ void CardSpecial::check_for_defense_interference(
shared_ptr<const Card> attacker_card,
shared_ptr<Card> target_card,
int16_t* inout_unknown_p4) {
// Note: This check is not part of the original implementation.
if (this->server()->base()->data_index->behavior_flags & BehaviorFlag::DISABLE_INTERFERENCE) {
return;
}
if (!inout_unknown_p4) {
return;
}
@@ -4319,6 +4324,11 @@ void CardSpecial::unknown_8024A9D8(const ActionState& pa, uint16_t action_card_r
}
void CardSpecial::check_for_attack_interference(shared_ptr<Card> unknown_p2) {
// Note: This check is not part of the original implementation.
if (this->server()->base()->data_index->behavior_flags & BehaviorFlag::DISABLE_INTERFERENCE) {
return;
}
if (unknown_p2->action_chain.chain.damage <= 0) {
return;
}
+1
View File
@@ -33,6 +33,7 @@ enum BehaviorFlag {
LOAD_CARD_TEXT = 0x00000020,
ENABLE_RECORDING = 0x00000040,
DISABLE_MASKING = 0x00000080,
DISABLE_INTERFERENCE = 0x00000100,
};
+2
View File
@@ -265,6 +265,8 @@
// 0x00000040 => Enable battle recording (after a battle, players can save the
// recording with the $saverec <filename> command)
// 0x00000080 => Disable command masking during battles
// 0x00000100 => Disable interference (COMs randomly coming to each other's
// rescue)
"Episode3BehaviorFlags": 0x00000002,
// Episode 3 card auction configuration. CardAuctionPoints specifies how many