Fluorohydride / ygopro-core

ygopro script engine.
MIT License
327 stars 134 forks source link

fix EFFECT_SELF_TOGRAVE reason effect #566

Closed mercury233 closed 7 months ago

mercury233 commented 7 months ago

It was settingpcard->temp.reason_effect twice in https://github.com/Fluorohydride/ygopro-core/blob/a04fddec1f78f6e8f18fb5d7d5681e67e4054dbf/operations.cpp#L1272 and https://github.com/Fluorohydride/ygopro-core/blob/a04fddec1f78f6e8f18fb5d7d5681e67e4054dbf/operations.cpp#L263

Should be similar as field::destroy(card_set* targets https://github.com/Fluorohydride/ygopro-core/blob/a04fddec1f78f6e8f18fb5d7d5681e67e4054dbf/operations.cpp#L212