|
|
@ -24,10 +24,12 @@ void PacketActorAttack::Actor(BaseActor &actor, bool send)
|
|
|
|
RW(actor.attack.target.mpNum, send);
|
|
|
|
RW(actor.attack.target.mpNum, send);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RW(actor.attack.type, send);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (actor.attack.type == mwmp::Attack::MELEE || actor.attack.type == mwmp::Attack::MAGIC)
|
|
|
|
|
|
|
|
{
|
|
|
|
RW(actor.attack.pressed, send);
|
|
|
|
RW(actor.attack.pressed, send);
|
|
|
|
RW(actor.attack.instant, send);
|
|
|
|
|
|
|
|
RW(actor.attack.success, send);
|
|
|
|
RW(actor.attack.success, send);
|
|
|
|
RW(actor.attack.type, send);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (actor.attack.type == mwmp::Attack::MELEE)
|
|
|
|
if (actor.attack.type == mwmp::Attack::MELEE)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -39,7 +41,11 @@ void PacketActorAttack::Actor(BaseActor &actor, bool send)
|
|
|
|
RW(actor.attack.applyProjectileEnchantment, send);
|
|
|
|
RW(actor.attack.applyProjectileEnchantment, send);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (actor.attack.type == mwmp::Attack::MAGIC)
|
|
|
|
else if (actor.attack.type == mwmp::Attack::MAGIC)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
RW(actor.attack.instant, send);
|
|
|
|
RW(actor.attack.spellId, send, true);
|
|
|
|
RW(actor.attack.spellId, send, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (actor.attack.type == mwmp::Attack::ITEM_MAGIC)
|
|
|
|
else if (actor.attack.type == mwmp::Attack::ITEM_MAGIC)
|
|
|
|
RW(actor.attack.itemId, send, true);
|
|
|
|
RW(actor.attack.itemId, send, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|