root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/skillengine/model/Skill.java
| 1401 | 1511 | ||
|---|---|---|---|
26 | import com.aionemu.gameserver.network.aion.serverpackets.SM_CASTSPELL; | 26 | import com.aionemu.gameserver.network.aion.serverpackets.SM_CASTSPELL; |
27 | import com.aionemu.gameserver.network.aion.serverpackets.SM_CASTSPELL_END; | 27 | import com.aionemu.gameserver.network.aion.serverpackets.SM_CASTSPELL_END; |
28 | import com.aionemu.gameserver.restrictions.RestrictionsManager; | 28 | import com.aionemu.gameserver.restrictions.RestrictionsManager; |
29 | import com.aionemu.gameserver.skillengine.SkillEngine; | ||
29 | import com.aionemu.gameserver.skillengine.action.Action; | 30 | import com.aionemu.gameserver.skillengine.action.Action; |
30 | import com.aionemu.gameserver.skillengine.action.Actions; | 31 | import com.aionemu.gameserver.skillengine.action.Actions; |
31 | import com.aionemu.gameserver.skillengine.condition.Condition; | 32 | import com.aionemu.gameserver.skillengine.condition.Condition; |
... | ... | ||
148 | } | 149 | } |
149 | 150 | ||
150 | /** | 151 | /** |
152 | * Penalty success skill | ||
153 | */ | ||
154 | private void startPenaltySkill() | ||
155 | { | ||
156 | if(skillTemplate.getPenaltySkillId() == 0) | ||
157 | return; | ||
158 | |||
159 | Skill skill = SkillEngine.getInstance().getSkill((Player) effector, skillTemplate.getPenaltySkillId(), 1, firstTarget); | ||
160 | skill.useSkill(); | ||
161 | } | ||
162 | |||
163 | /** | ||
151 | * Start casting of skill | 164 | * Start casting of skill |
152 | */ | 165 | */ |
153 | private void startCast() | 166 | private void startCast() |
... | ... | ||
221 | { | 234 | { |
222 | effect.applyEffect(); | 235 | effect.applyEffect(); |
223 | } | 236 | } |
237 | |||
238 | /** | ||
239 | * Use penalty skill (now 100% success) | ||
240 | */ | ||
241 | startPenaltySkill(); | ||
224 | } | 242 | } |
225 | 243 | ||
226 | /** | 244 | /** |
Download diff