View Single Post
  #8  
Old 02-23-2014, 05:38 PM
Davood
Discordant
 
Join Date: Jan 2005
Posts: 488
Default

https://github.com/davoodinator/Serv...8de34836bd2901

Code:
 zone/spell_effects.cpp

@@ -3418,11 +3418,12 @@ void Mob::DoBuffTic(uint16 spell_id, int slot, uint32 ticsremaining, uint8 caste

 			{

 				if (spellbonuses.DistanceRemoval){

 

-					int distance =	sqrt(

-									((int(GetX()) - buffs[slot].caston_x) * (int(GetX()) - buffs[slot].caston_x)) + 

-									((int(GetY()) - buffs[slot].caston_y) *  (int(GetY()) - buffs[slot].caston_y)) +

-									((int(GetZ()) - buffs[slot].caston_z) * (int(GetZ()) - buffs[slot].caston_z)) 

-									);

+					float distanse =sqrt(

+									((GetX() - buffs[slot].caston_x) * (GetX() - buffs[slot].caston_x)) + 

+									((GetY() - buffs[slot].caston_y) *  (GetY() - buffs[slot].caston_y)) +

+									((GetZ() - buffs[slot].caston_z) * (GetZ() - buffs[slot].caston_z)));

+

+					int distance = int(distanse);

 

 					if (distance > spells[spell_id].base[i]){
__________________
----------
Demon Overlord of Alakamin
skype @ davoodinator
Reply With Quote