Commit graph

505 commits

Author SHA1 Message Date
Edoardo Lolletti
51d40c3a08 Add smart pointer backend to lua function references handling 2021-03-24 19:47:18 +01:00
Edoardo Lolletti
d61cfe4239 Update checks for just sent cards
Properly handle effects that can trigger in both public and pricate locations
2021-03-08 22:08:40 +01:00
mercury233
668d102f67 fix hint of cteffect 2021-02-27 16:59:05 +01:00
Edoardo Lolletti
23434bee9c Add "real" parameter to Duel.GetChainCount
If set to true, the returned count during chain building when executing target/cost won't include the current chain link
2021-02-02 18:09:11 +01:00
Edoardo Lolletti
9c468bf658 Add SPSUMMON_PROC_G related in chain summon functions
Duel.PendulumSummon, Duel.ProcedureSummonGroup, Duel.IsPlayerCanPendulumSummon, Duel.IsPlayerCanProcedureSummonGroup
2021-01-21 19:15:31 +01:00
edo9300
22e710a335 Major cleanups in interpreter.cpp
Update lua functions calling functions, moved most of their common code in inline helper functions, simplify some code flow logic, use raw string literals when formatting strings
2021-01-07 19:42:30 +01:00
edo9300
47d34ef0f3 Fix some instances of MSG_HINT writing uint32 instead of uint64 2021-01-04 17:53:34 +01:00
edo9300
3053d5c5c6 Update processor.cpp 2021-01-03 23:26:41 +01:00
edo9300
cb87a2cf6b Fix PROCESSOR_ROCK_PAPER_SCISSORS not returning the proper processor flag 2021-01-01 23:30:30 +01:00
edo9300
07f1005605 Add EFFECT_FLAG2_CHECK_SIMULTANEOUS
Make teh automatic handle of simultaneous trigger opt in rather than default
2020-12-28 23:35:41 +01:00
Mercury233
191e0f8199 add EVENT_BREAK_EFFECT (#335) 2020-12-23 17:46:33 +01:00
edo9300
07848178fa Update processor.cpp 2020-12-21 17:21:54 +01:00
mercury233
21ff3507d1 fix hint for EVENT_PREDRAW 2020-12-21 17:17:58 +01:00
mercury233
1975c60137 add HINT_EVENT for EVENT_PREDRAW 2020-12-21 17:17:48 +01:00
edo9300
92baa4eabc Properly implement goat rule on position change
Rather than being allowed to change the position if the monster changed controller, the rule is about being able to change position if the monster is summoned not by the current controller. (ie cyber jar)
2020-12-21 17:11:42 +01:00
edo9300
befe91c463 Update new constant names 2020-11-18 19:29:53 +01:00
edo9300
6d4b460b04 Add TCG_SEGOC_NONPUBLIC and TCG_SEGOC_FIRSTTRIGGER flags 2020-11-18 19:23:33 +01:00
Edoardo Lolletti
ef12d8e2e7
Don't let trigger effects trigger if their condition is met at the same time as them changing location #336 (#119) 2020-11-18 19:16:52 +01:00
Mercury233
0c5e273d7d fix equipped monster activated effect (#343) 2020-10-30 18:38:15 +01:00
edo9300
b689859045 Check for duel end on breakeffect
This rule got changed for tcg in 2015 and for ocg in 2017
2020-10-27 19:01:38 +01:00
edo9300
87e7e27f50 Remove redoundant pduel->game_field-> from member functions 2020-10-18 16:31:52 +02:00
edo9300
e7cc6dcd59 Don't store attack replay on disabled attack 2020-10-10 11:27:19 +02:00
edo9300
4c289aed0d return PROCESSOR_FLAG_CONTINUE on announce processors when the selection is done
Those message can either return a continue or a wait flag depending on the step
2020-09-30 16:18:51 +02:00
Mercury233
7849d7d775 fix EFFECT_PATRICIAN_OF_DARKNESS for direct attack (#338) 2020-09-22 21:32:30 +02:00
edo9300
844d969b79 Resolve clang and g++ warnings
Also fix to_check parameter from select_release_group not being passed to the functions
2020-09-16 18:22:55 +02:00
edo9300
61a279ff5a Resolve msvc warning 2020-09-16 17:12:50 +02:00
edo9300
5d814e52d7 Add Duel.SelectCardsFromCodes
Like Group.Select, but allows card codes to be passed directly, instead of card objects
```
Duel.SelectCardsFromCodes(0,1,3,false,10000000,75582395,48356796,48356796)
```
2020-08-21 22:24:48 +02:00
edo9300
f137ca6407 Function signatures formatting 2020-07-21 19:15:19 +02:00
edo9300
3bcf8171f3 Make some loops for range 2020-07-21 16:41:40 +02:00
edo9300
946f8e8850 Merge branch 'master' into goat 2020-07-01 20:45:58 +02:00
Edoardo Lolletti
d6006afc6b Pass reason card instead 2020-07-01 20:11:08 +02:00
edo9300
74e29fa8f0 Merge branch 'master' into goat 2020-07-01 13:04:37 +02:00
DailyShana
8896b269a1 update Card.CheckActivateEffect (#325) 2020-07-01 12:59:24 +02:00
DailyShana
de49ebfb56 support oath effect in summon cost 2020-07-01 12:48:35 +02:00
edo9300
34559c88ec Pass additional parameter when retrieving EFFECT_CHANGE_BATTLE_DAMAGE's value
For cards that change the battle damage ONLY when they're the reason of that damage
2020-06-30 16:25:26 +02:00
edo9300
ed42ce7ee6 Fix parameters being lost in int32 conversion 2020-06-16 17:43:13 +02:00
edo9300
cda8dd8b81 Fix typo with field spells 2020-06-16 13:11:12 +02:00
edo9300
b5020dd3cf Updated handling of LOCATION_PZONE/LOCATION_FZONE in mofetofield 2020-06-16 12:26:59 +02:00
edo9300
80cd61db88 Raise second point event after battle confirm only if it wasn't raised before 2020-06-11 23:17:21 +02:00
edo9300
131e87b9ea Process events immediately after battle_confirm if there are forced triggers 2020-06-11 23:14:38 +02:00
edo9300
a063b8b129 Send MSG_CHAIN_SOLVED after all the EVENT_CHAIN_SOLVED events resolved 2020-06-09 13:06:04 +02:00
edo9300
042940dd4e Process events after EVENT_BATTLE_CONFIRM in 6 step battle step as well 2020-06-04 22:51:26 +02:00
edo9300
c28f042b0c Remove extra point event step 2020-06-04 21:56:23 +02:00
edo9300
7bbd593900 Update DUEL_6_STEP_BATLLE_STEP
Multiple different effects are activate at the same time inthe damage sub step 3
2020-06-04 17:13:26 +02:00
edo9300
218bcfc872 Attempt to reimplement 6 step damage step 2020-06-02 23:12:56 +02:00
edo9300
df9d8f549e Don't check the position either when checking for forced triggers id DUEL_TRIGGER_WHEN_PRIVATE_KNOWLEDGE is set 2020-05-31 23:42:00 +02:00
edo9300
8318007694 Fix DUEL_TRIGGER_WHEN_PRIVATE_KNOWLEDGE 2020-05-30 17:54:13 +02:00
edo9300
3030b33b7b Implement DUEL_USE_TRAPS_IN_NEW_CHAIN 2020-05-30 17:54:05 +02:00
edo9300
96214d21fc Raise ignition effects after chain end as well with DUEL_OBSOLETE_IGNITION enabled 2020-05-29 15:27:21 +02:00
edo9300
713fe5a6e0 Don't show replay attack prompt if DUEL_STORE_ATTACK_REPLAYS is set 2020-05-29 14:08:01 +02:00