Commit 1b0fff0d authored by VanillaSalt's avatar VanillaSalt

update TargetRange

parent 48300a55
...@@ -434,18 +434,18 @@ int32 effect::is_target(card* pcard) { ...@@ -434,18 +434,18 @@ int32 effect::is_target(card* pcard) {
return FALSE; return FALSE;
if(is_flag(EFFECT_FLAG_ABSOLUTE_TARGET)) { if(is_flag(EFFECT_FLAG_ABSOLUTE_TARGET)) {
if(pcard->current.controler == 0) { if(pcard->current.controler == 0) {
if (!(s_range & pcard->current.location)) if(!pcard->current.is_location(s_range))
return FALSE; return FALSE;
} else { } else {
if(!(o_range & pcard->current.location)) if(!pcard->current.is_location(o_range))
return FALSE; return FALSE;
} }
} else { } else {
if(pcard->current.controler == get_handler_player()) { if(pcard->current.controler == get_handler_player()) {
if(!(s_range & pcard->current.location)) if(!pcard->current.is_location(s_range))
return FALSE; return FALSE;
} else { } else {
if(!(o_range & pcard->current.location)) if(!pcard->current.is_location(o_range))
return FALSE; return FALSE;
} }
} }
...@@ -464,9 +464,9 @@ int32 effect::is_target_player(uint8 playerid) { ...@@ -464,9 +464,9 @@ int32 effect::is_target_player(uint8 playerid) {
return FALSE; return FALSE;
uint8 self = get_handler_player(); uint8 self = get_handler_player();
if(is_flag(EFFECT_FLAG_ABSOLUTE_TARGET)) { if(is_flag(EFFECT_FLAG_ABSOLUTE_TARGET)) {
if(s_range && playerid == 0 ) if(s_range && playerid == 0)
return TRUE; return TRUE;
if(o_range && playerid == 1 ) if(o_range && playerid == 1)
return TRUE; return TRUE;
} else { } else {
if(s_range && self == playerid) if(s_range && self == playerid)
......
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