diff options
author | gumi <git@gumi.ca> | 2018-01-27 23:23:32 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-01-27 23:23:32 -0500 |
commit | 9024b4e950f151727c6c5e4a7b594911029d487b (patch) | |
tree | 15875d9c3b388e83d6b31989fb4dacbabbf2ae17 /src | |
parent | 6d60143638699599414ed23d59a3e821467d731b (diff) | |
download | tmwa-9024b4e950f151727c6c5e4a7b594911029d487b.tar.gz tmwa-9024b4e950f151727c6c5e4a7b594911029d487b.tar.bz2 tmwa-9024b4e950f151727c6c5e4a7b594911029d487b.tar.xz tmwa-9024b4e950f151727c6c5e4a7b594911029d487b.zip |
add missing weapon override in packet 01da
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 9518504..8e697f2 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -757,7 +757,9 @@ void clif_set007b(dumb_ptr<map_session_data> sd, Buffer& buf) fixed_1da.hair_style = sd->status.hair; IOff0 widx = sd->equip_index_maybe[EQUIP::WEAPON]; IOff0 sidx = sd->equip_index_maybe[EQUIP::SHIELD]; - if (widx.ok() && sd->inventory_data[widx].is_some()) + if (sd->attack_spell_override) + fixed_1da.weapon = sd->attack_spell_look_override; + else if (widx.ok() && sd->inventory_data[widx].is_some()) { fixed_1da.weapon = sd->status.inventory[widx].nameid; } |