Commit a522ebbb authored by Chen Bill's avatar Chen Bill Committed by GitHub

fix function name (#638)

parent 2dbc9d75
......@@ -12,8 +12,8 @@
#include "interpreter.h"
bool effect_sort_id(const effect* e1, const effect* e2) {
int32 is_single1 = e1->is_iniital_single();
int32 is_single2 = e2->is_iniital_single();
int32 is_single1 = e1->is_initial_single();
int32 is_single2 = e2->is_initial_single();
if (is_single1 != is_single2)
return is_single1 > is_single2;
return e1->id < e2->id;
......@@ -619,7 +619,7 @@ int32 effect::is_chainable(uint8 tp) {
int32 effect::is_hand_trigger() const {
return (range & LOCATION_HAND) && (type & EFFECT_TYPE_TRIGGER_O) && get_code_type() != CODE_PHASE;
}
int32 effect::is_iniital_single() const {
int32 effect::is_initial_single() const {
return (type & EFFECT_TYPE_SINGLE) && is_flag(EFFECT_FLAG_SINGLE_RANGE) && is_flag(EFFECT_FLAG_INITIAL);
}
//return: this can be reset by reset_level or not
......
......@@ -88,7 +88,7 @@ public:
int32 is_immuned(card* pcard);
int32 is_chainable(uint8 tp);
int32 is_hand_trigger() const;
int32 is_iniital_single() const;
int32 is_initial_single() const;
int32 reset(uint32 reset_level, uint32 reset_type);
void dec_count(uint8 playerid = PLAYER_NONE);
void recharge();
......
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