Quellcode durchsuchen

- Fixed NPC_SELFDESTRUCTION not showing nor dealing damage.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6919 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex vor 19 Jahren
Ursprung
Commit
1018c2c159
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/skill.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/06/01
+	* Fixed NPC_SELFDESTRUCTION not showing nor dealing damage. [Skotlex]
 	* NPC_TRANSFORMATION/NPC_METAMORPHOSIS will now preserve the original mob
 	  without removing it when the skill level is greater than one. [Skotlex]
 	* Added SC_DANCING declaration in the Status Change tables to signal it

+ 1 - 1
src/map/skill.c

@@ -1942,7 +1942,7 @@ int skill_attack( int attack_type, struct block_list* src, struct block_list *ds
 	case NPC_SELFDESTRUCTION:
 		if(src->type==BL_PC)
 			dmg.blewcount = 10;
-		break;
+		dmg.amotion = 0; //Disable delay or attack will do no damage since source is dead by the time it takes effect. [Skotlex]
 	case KN_AUTOCOUNTER: //Skills that need be passed as a normal attack for the client to display correctly.
 	case TF_DOUBLE:
 	case GS_CHAINACTION: