diff options
author | xazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-27 20:41:29 +0000 |
---|---|---|
committer | xazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-27 20:41:29 +0000 |
commit | d00b2d7fcdde9110a9e41a545439f77bce93e4dc (patch) | |
tree | 1214f5c2f46f1a40f38591fabb5135f08e8b4e6c /src/map/npc.c | |
parent | 306819ac6682ae2a814531c6990193bdfd120c23 (diff) | |
download | hercules-d00b2d7fcdde9110a9e41a545439f77bce93e4dc.tar.gz hercules-d00b2d7fcdde9110a9e41a545439f77bce93e4dc.tar.bz2 hercules-d00b2d7fcdde9110a9e41a545439f77bce93e4dc.tar.xz hercules-d00b2d7fcdde9110a9e41a545439f77bce93e4dc.zip |
Fixed an issue, players were able to see disabled NPCs with maya purple card. (bugreport:2221)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15288 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 4606cfc8e..0d112b937 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -169,13 +169,19 @@ int npc_enable(const char* name, int flag) } if (flag&1) + { nd->sc.option&=~OPTION_INVISIBLE; + clif_spawn(&nd->bl); + } else if (flag&2) nd->sc.option&=~OPTION_HIDE; else if (flag&4) nd->sc.option|= OPTION_HIDE; else //Can't change the view_data to invisible class because the view_data for all npcs is shared! [Skotlex] + { nd->sc.option|= OPTION_INVISIBLE; + clif_clearunit_area(&nd->bl,CLR_OUTSIGHT); // Hack to trick maya purple card [Xazax] + } if (nd->class_ == WARP_CLASS || nd->class_ == FLAG_CLASS) { //Client won't display option changes for these classes [Toms] |