Revert "Added pcblock and checkpcblock script commands. (#3951)" (#4048)

This reverts commit 3e0d3d2fe6.
This commit is contained in:
Atemo
2019-03-26 16:41:14 +01:00
committed by GitHub
parent 3e0d3d2fe6
commit e4b41ef7e0
14 changed files with 19 additions and 169 deletions

View File

@@ -599,10 +599,7 @@ void do_init_vending_autotrade(void)
CREATE(at->sd, struct map_session_data, 1);
pc_setnewpc(at->sd, at->account_id, at->char_id, 0, gettick(), at->sex, 0);
at->sd->state.autotrade = 1|2;
if (battle_config.autotrade_monsterignore)
at->sd->state.block_action |= PCBLOCK_IMMUNE;
else
at->sd->state.block_action &= ~PCBLOCK_IMMUNE;
at->sd->state.monster_ignore = (battle_config.autotrade_monsterignore);
chrif_authreq(at->sd, true);
uidb_put(vending_autotrader_db, at->char_id, at);
}