mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Check for Otc::GameAttackSeq feature
This commit is contained in:
parent
b5a14ddb68
commit
b9848f360c
@ -583,10 +583,8 @@ void ProtocolGame::sendChangeFightModes(Otc::FightModes fightMode, Otc::ChaseMod
|
|||||||
msg->addU8(fightMode);
|
msg->addU8(fightMode);
|
||||||
msg->addU8(chaseMode);
|
msg->addU8(chaseMode);
|
||||||
msg->addU8(safeFight ? 0x01: 0x00);
|
msg->addU8(safeFight ? 0x01: 0x00);
|
||||||
|
|
||||||
if(g_game.getFeature(Otc::GamePVPMode))
|
if(g_game.getFeature(Otc::GamePVPMode))
|
||||||
msg->addU8(pvpMode);
|
msg->addU8(pvpMode);
|
||||||
|
|
||||||
send(msg);
|
send(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -595,6 +593,7 @@ void ProtocolGame::sendAttack(uint creatureId, uint seq)
|
|||||||
OutputMessagePtr msg(new OutputMessage);
|
OutputMessagePtr msg(new OutputMessage);
|
||||||
msg->addU8(Proto::ClientAttack);
|
msg->addU8(Proto::ClientAttack);
|
||||||
msg->addU32(creatureId);
|
msg->addU32(creatureId);
|
||||||
|
if(g_game.getFeature(Otc::GameAttackSeq))
|
||||||
msg->addU32(seq);
|
msg->addU32(seq);
|
||||||
send(msg);
|
send(msg);
|
||||||
}
|
}
|
||||||
@ -604,6 +603,7 @@ void ProtocolGame::sendFollow(uint creatureId, uint seq)
|
|||||||
OutputMessagePtr msg(new OutputMessage);
|
OutputMessagePtr msg(new OutputMessage);
|
||||||
msg->addU8(Proto::ClientFollow);
|
msg->addU8(Proto::ClientFollow);
|
||||||
msg->addU32(creatureId);
|
msg->addU32(creatureId);
|
||||||
|
if(g_game.getFeature(Otc::GameAttackSeq))
|
||||||
msg->addU32(seq);
|
msg->addU32(seq);
|
||||||
send(msg);
|
send(msg);
|
||||||
}
|
}
|
||||||
@ -652,10 +652,8 @@ void ProtocolGame::sendShareExperience(bool active)
|
|||||||
OutputMessagePtr msg(new OutputMessage);
|
OutputMessagePtr msg(new OutputMessage);
|
||||||
msg->addU8(Proto::ClientShareExperience);
|
msg->addU8(Proto::ClientShareExperience);
|
||||||
msg->addU8(active ? 0x01 : 0x00);
|
msg->addU8(active ? 0x01 : 0x00);
|
||||||
|
|
||||||
if(g_game.getClientVersion() < 910)
|
if(g_game.getClientVersion() < 910)
|
||||||
msg->addU8(0);
|
msg->addU8(0);
|
||||||
|
|
||||||
send(msg);
|
send(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user