Commit fadb2195 authored by salix5's avatar salix5

edit

parent c221464b
...@@ -443,8 +443,8 @@ int32 effect::is_chainable(uint8 tp) { ...@@ -443,8 +443,8 @@ int32 effect::is_chainable(uint8 tp) {
if(!(type & EFFECT_TYPE_ACTIONS)) if(!(type & EFFECT_TYPE_ACTIONS))
return FALSE; return FALSE;
int32 sp = get_speed(); int32 sp = get_speed();
// Curse of Field(12470447) is the exception // Curse of Field is the exception
if((type & EFFECT_TYPE_ACTIVATE) && (sp <= 1) && handler->data.code != 12470447) if((type & EFFECT_TYPE_ACTIVATE) && (sp <= 1) && handler->data.code != CARD_COF)
return FALSE; return FALSE;
if(pduel->game_field->core.current_chain.size()) { if(pduel->game_field->core.current_chain.size()) {
if(!(flag & EFFECT_FLAG_FIELD_ONLY) && (type & EFFECT_TYPE_TRIGGER_O) if(!(flag & EFFECT_FLAG_FIELD_ONLY) && (type & EFFECT_TYPE_TRIGGER_O)
......
...@@ -88,6 +88,9 @@ public: ...@@ -88,6 +88,9 @@ public:
int32 in_range(int32 loc, int32 seq); int32 in_range(int32 loc, int32 seq);
}; };
//special cards
#define CARD_COF 12470447
//status //status
#define EFFECT_STATUS_AVAILABLE 0x0001 #define EFFECT_STATUS_AVAILABLE 0x0001
#define EFFECT_STATUS_ACTIVATED 0x0002 #define EFFECT_STATUS_ACTIVATED 0x0002
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment