Commit e9edc2c0 authored by Chen Bill's avatar Chen Bill

add effect::get_integer_value

parent 01016149
......@@ -738,6 +738,9 @@ void effect::get_value(effect* peffect, uint32 extraargs, std::vector<int32>* re
result->push_back((int32)value);
}
}
int32 effect::get_integer_value() {
return is_flag(EFFECT_FLAG_FUNC_VALUE) ? 0 : value;
}
int32 effect::check_value_condition(uint32 extraargs) {
if(is_flag(EFFECT_FLAG_FUNC_VALUE)) {
pduel->lua->add_param(this, PARAM_TYPE_EFFECT, TRUE);
......
......@@ -97,6 +97,7 @@ public:
void get_value(uint32 extraargs, std::vector<int32>* result);
void get_value(card* pcard, uint32 extraargs, std::vector<int32>* result);
void get_value(effect* peffect, uint32 extraargs, std::vector<int32>* result);
int32 get_integer_value();
int32 check_value_condition(uint32 extraargs = 0);
void* get_label_object();
int32 get_speed();
......
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