Progenosis
Member
- Joined
- Sep 6, 2011
- Messages
- 131
- Reaction score
- 18
I want to make a spell that deals damage based on the skills of the player (sword, club, axe)
This is the attack formula that has the spell I took:
But this speall deals the same damage when casted by a lvl 100 knight with sword skill 100 than a lvl 100 knight with sword kill 20 player :/
How can I fix it?
This is the attack formula that has the spell I took:
Code:
local firstStrike = createCombatObject()
setCombatParam(firstStrike, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(firstStrike, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(firstStrike, COMBAT_FORMULA_LEVELMAGIC, -13.766, -50, -12.241, -100)
But this speall deals the same damage when casted by a lvl 100 knight with sword skill 100 than a lvl 100 knight with sword kill 20 player :/
How can I fix it?