summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/eaprotocol.h3
-rw-r--r--src/net/ea/playerhandler.cpp6
2 files changed, 4 insertions, 5 deletions
diff --git a/src/net/ea/eaprotocol.h b/src/net/ea/eaprotocol.h
index 618b1c0c8..f355b16a9 100644
--- a/src/net/ea/eaprotocol.h
+++ b/src/net/ea/eaprotocol.h
@@ -35,8 +35,7 @@ enum
EA_LUK,
EA_ATK,
- EA_DEF,
- EA_MATK
+ EA_DEF
};
enum
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 63b865784..4c9f5be61 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -278,7 +278,7 @@ void PlayerHandler::processPlayerArrowMessage(Net::MessageIn &msg)
bool PlayerHandler::canUseMagic() const
{
- return PlayerInfo::getStatEffective(EA_MATK) > 0;
+ return PlayerInfo::getStatEffective(Attributes::MATK) > 0;
}
int PlayerHandler::getJobLocation() const
@@ -488,10 +488,10 @@ void PlayerHandler::setStat(const int type,
PlayerInfo::updateAttrs();
break;
case 0x002b:
- PlayerInfo::setStatBase(EA_MATK, base);
+ PlayerInfo::setStatBase(Attributes::MATK, base);
break;
case 0x002c:
- PlayerInfo::setStatMod(EA_MATK, base);
+ PlayerInfo::setStatMod(Attributes::MATK, base);
break;
case 0x002d:
PlayerInfo::setStatBase(EA_DEF, base);