- Fixed a bug. Warp portal cannot be casted on dead players.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13104 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
c2ba03b6e2
commit
75acf439cf
@ -1858,14 +1858,15 @@ static int skill_check_unit_range2_sub (struct block_list *bl, va_list ap)
|
||||
if(bl->prev == NULL)
|
||||
return 0;
|
||||
|
||||
if(status_isdead(bl))
|
||||
return 0;
|
||||
|
||||
skillid = va_arg(ap,int);
|
||||
if (skillid==HP_BASILICA && bl->type==BL_PC)
|
||||
|
||||
if( status_isdead(bl) && skillid != AL_WARP )
|
||||
return 0;
|
||||
|
||||
if (skillid==AM_DEMONSTRATION && bl->type==BL_MOB && ((TBL_MOB*)bl)->class_ == MOBID_EMPERIUM)
|
||||
if( skillid == HP_BASILICA && bl->type == BL_PC )
|
||||
return 0;
|
||||
|
||||
if( skillid == AM_DEMONSTRATION && bl->type == BL_MOB && ((TBL_MOB*)bl)->class_ == MOBID_EMPERIUM )
|
||||
return 0; //Allow casting Bomb/Demonstration Right under emperium [Skotlex]
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user