add DISABLE_INTERFERENCE behavior flag
This commit is contained in:
@@ -3370,6 +3370,11 @@ void CardSpecial::check_for_defense_interference(
|
|||||||
shared_ptr<const Card> attacker_card,
|
shared_ptr<const Card> attacker_card,
|
||||||
shared_ptr<Card> target_card,
|
shared_ptr<Card> target_card,
|
||||||
int16_t* inout_unknown_p4) {
|
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) {
|
if (!inout_unknown_p4) {
|
||||||
return;
|
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) {
|
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) {
|
if (unknown_p2->action_chain.chain.damage <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ enum BehaviorFlag {
|
|||||||
LOAD_CARD_TEXT = 0x00000020,
|
LOAD_CARD_TEXT = 0x00000020,
|
||||||
ENABLE_RECORDING = 0x00000040,
|
ENABLE_RECORDING = 0x00000040,
|
||||||
DISABLE_MASKING = 0x00000080,
|
DISABLE_MASKING = 0x00000080,
|
||||||
|
DISABLE_INTERFERENCE = 0x00000100,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -265,6 +265,8 @@
|
|||||||
// 0x00000040 => Enable battle recording (after a battle, players can save the
|
// 0x00000040 => Enable battle recording (after a battle, players can save the
|
||||||
// recording with the $saverec <filename> command)
|
// recording with the $saverec <filename> command)
|
||||||
// 0x00000080 => Disable command masking during battles
|
// 0x00000080 => Disable command masking during battles
|
||||||
|
// 0x00000100 => Disable interference (COMs randomly coming to each other's
|
||||||
|
// rescue)
|
||||||
"Episode3BehaviorFlags": 0x00000002,
|
"Episode3BehaviorFlags": 0x00000002,
|
||||||
|
|
||||||
// Episode 3 card auction configuration. CardAuctionPoints specifies how many
|
// Episode 3 card auction configuration. CardAuctionPoints specifies how many
|
||||||
|
|||||||
Reference in New Issue
Block a user