Commit 0abc13c3 authored by salix5's avatar salix5

atk/attr/race

parent a3d46288
......@@ -302,7 +302,7 @@ uint32 card::get_type() {
int32 card::get_base_attack(uint8 swap) {
if (current.location != LOCATION_MZONE && !(data.type & TYPE_MONSTER) && !(get_type() & TYPE_MONSTER))
return 0;
if (current.location != LOCATION_MZONE && !(get_type() & TYPE_MONSTER))
if (current.location != LOCATION_MZONE)
return data.attack;
if (temp.base_attack != -1)
return temp.base_attack;
......@@ -330,7 +330,7 @@ int32 card::get_attack(uint8 swap) {
return assume_value;
if (current.location != LOCATION_MZONE && !(data.type & TYPE_MONSTER) && !(get_type() & TYPE_MONSTER))
return 0;
if (current.location != LOCATION_MZONE && !(get_type() & TYPE_MONSTER))
if (current.location != LOCATION_MZONE)
return data.attack;
if (temp.attack != -1)
return temp.attack;
......@@ -402,7 +402,7 @@ int32 card::get_attack(uint8 swap) {
int32 card::get_base_defence(uint8 swap) {
if (current.location != LOCATION_MZONE && !(data.type & TYPE_MONSTER) && !(get_type() & TYPE_MONSTER))
return 0;
if (current.location != LOCATION_MZONE && !(get_type() & TYPE_MONSTER))
if (current.location != LOCATION_MZONE)
return data.defence;
if (temp.base_defence != -1)
return temp.base_defence;
......@@ -430,7 +430,7 @@ int32 card::get_defence(uint8 swap) {
return assume_value;
if (current.location != LOCATION_MZONE && !(data.type & TYPE_MONSTER) && !(get_type() & TYPE_MONSTER))
return 0;
if (current.location != LOCATION_MZONE && !(get_type() & TYPE_MONSTER))
if (current.location != LOCATION_MZONE)
return data.defence;
if (temp.defence != -1)
return temp.defence;
......@@ -505,7 +505,7 @@ uint32 card::get_level() {
return 0;
if(assume_type == ASSUME_LEVEL)
return assume_value;
if(!(current.location & (LOCATION_MZONE + LOCATION_HAND)) && !(get_type() & TYPE_MONSTER))
if(!(current.location & LOCATION_MZONE) && !(data.type & TYPE_MONSTER))
return data.level;
if (temp.level != 0xffffffff)
return temp.level;
......@@ -634,7 +634,7 @@ uint32 card::get_attribute() {
return assume_value;
if(current.location != LOCATION_MZONE && !(data.type & TYPE_MONSTER) && !(get_type() & TYPE_MONSTER))
return 0;
if(!(current.location & (LOCATION_MZONE + LOCATION_GRAVE)) && !(get_type() & TYPE_MONSTER))
if(!(current.location & (LOCATION_MZONE)) && !(data.type & TYPE_MONSTER) && !(get_type() & TYPE_TRAPMONSTER))
return data.attribute;
if (temp.attribute != 0xffffffff)
return temp.attribute;
......@@ -664,7 +664,7 @@ uint32 card::get_race() {
return assume_value;
if(current.location != LOCATION_MZONE && !(data.type & TYPE_MONSTER) && !(get_type() & TYPE_MONSTER))
return 0;
if(!(current.location & (LOCATION_MZONE + LOCATION_GRAVE)) && !(get_type() & TYPE_MONSTER))
if(!(current.location & (LOCATION_MZONE)) && !(data.type & TYPE_MONSTER) && !(get_type() & TYPE_TRAPMONSTER))
return data.race;
if (temp.race != 0xffffffff)
return temp.race;
......
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