• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Black Skull get normal damage. [C++]

DukeeH

Active Member
Joined
Dec 6, 2010
Messages
550
Solutions
3
Reaction score
39
How to make Black skull get normal damage?
which source part is related to it.


Thanks.
DukeeH.
 
Last edited:
remove red part in combat.cpp (Combat::CombatHealthFunc and Combat::CombatManaFunc)
Code:
	if(change < 0 && caster && caster->getPlayer() && target->getPlayer()[B][COLOR="red"] && target->getPlayer()->getSkull() != SKULL_BLACK[/COLOR][/B])
		change = change / 2;
 
BUG when remove it
Code:
  In static member function `static bool Combat::CombatHealthFunc(Creature*, Creature*, const CombatParams&, void*)': 
545 C:\Documents and Settings\Lucas Olzon\Desktop\trunk.r3884\combat.cpp expected `)' before "change" 
 C:\Documents and Settings\Lucas Olzon\Desktop\trunk.r3884\dev-cpp\Makefile.win [Build Error]  [obj//combat.o] Error 1


EDIT: Solved
 
Last edited:
Back
Top