summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 15:39:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:09 +0300
commita6f509e5724bea354c4da040b210ad21937d9b26 (patch)
treeded1d613f3f9896ae1489c61af89aa1e86f43dcc /src/net/ea
parent081e86a783d33e92d9566f5262b629031887d404 (diff)
downloadmanaplus-a6f509e5724bea354c4da040b210ad21937d9b26.tar.gz
manaplus-a6f509e5724bea354c4da040b210ad21937d9b26.tar.bz2
manaplus-a6f509e5724bea354c4da040b210ad21937d9b26.tar.xz
manaplus-a6f509e5724bea354c4da040b210ad21937d9b26.zip
Move FLEE stat from net enum into attributes.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/eaprotocol.h3
-rw-r--r--src/net/ea/playerhandler.cpp4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/net/ea/eaprotocol.h b/src/net/ea/eaprotocol.h
index 5bb9ef46d..cb21ff7f1 100644
--- a/src/net/ea/eaprotocol.h
+++ b/src/net/ea/eaprotocol.h
@@ -38,8 +38,7 @@ enum
EA_DEF,
EA_MATK,
EA_MDEF,
- EA_HIT,
- EA_FLEE
+ EA_HIT
};
enum
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index cafd4b681..54296f181 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -509,10 +509,10 @@ void PlayerHandler::setStat(const int type,
PlayerInfo::setStatBase(EA_HIT, base);
break;
case 0x0032:
- PlayerInfo::setStatBase(EA_FLEE, base);
+ PlayerInfo::setStatBase(Attributes::FLEE, base);
break;
case 0x0033:
- PlayerInfo::setStatMod(EA_FLEE, base);
+ PlayerInfo::setStatMod(Attributes::FLEE, base);
break;
case 0x0034:
PlayerInfo::setStatBase(Attributes::CRIT, base);