L2Effect.java 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package com.l2jserver.gameserver.model.effects;
  16. import java.util.ArrayList;
  17. import java.util.concurrent.ScheduledFuture;
  18. import java.util.concurrent.TimeUnit;
  19. import java.util.logging.Level;
  20. import java.util.logging.Logger;
  21. import com.l2jserver.gameserver.GameTimeController;
  22. import com.l2jserver.gameserver.ThreadPoolManager;
  23. import com.l2jserver.gameserver.datatables.SkillTable;
  24. import com.l2jserver.gameserver.model.ChanceCondition;
  25. import com.l2jserver.gameserver.model.IChanceSkillTrigger;
  26. import com.l2jserver.gameserver.model.actor.L2Character;
  27. import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
  28. import com.l2jserver.gameserver.model.actor.instance.L2ServitorInstance;
  29. import com.l2jserver.gameserver.model.skills.L2Skill;
  30. import com.l2jserver.gameserver.model.skills.L2SkillType;
  31. import com.l2jserver.gameserver.model.skills.funcs.Func;
  32. import com.l2jserver.gameserver.model.skills.funcs.FuncTemplate;
  33. import com.l2jserver.gameserver.model.skills.funcs.Lambda;
  34. import com.l2jserver.gameserver.model.stats.Env;
  35. import com.l2jserver.gameserver.network.SystemMessageId;
  36. import com.l2jserver.gameserver.network.serverpackets.AbnormalStatusUpdate;
  37. import com.l2jserver.gameserver.network.serverpackets.ExOlympiadSpelledInfo;
  38. import com.l2jserver.gameserver.network.serverpackets.MagicSkillLaunched;
  39. import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
  40. import com.l2jserver.gameserver.network.serverpackets.PartySpelled;
  41. import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
  42. /**
  43. * This class ...
  44. * @version $Revision: 1.1.2.1.2.12 $ $Date: 2005/04/11 10:06:07 $
  45. */
  46. public abstract class L2Effect implements IChanceSkillTrigger
  47. {
  48. protected static final Logger _log = Logger.getLogger(L2Effect.class.getName());
  49. private static final Func[] _emptyFunctionSet = new Func[0];
  50. // member _effector is the instance of L2Character that cast/used the spell/skill that is
  51. // causing this effect. Do not confuse with the instance of L2Character that
  52. // is being affected by this effect.
  53. private final L2Character _effector;
  54. // member _effected is the instance of L2Character that was affected
  55. // by this effect. Do not confuse with the instance of L2Character that
  56. // casted/used this effect.
  57. private final L2Character _effected;
  58. // the skill that was used.
  59. private final L2Skill _skill;
  60. // the value of an update
  61. private final Lambda _lambda;
  62. // the current state
  63. private EffectState _state;
  64. // period, seconds
  65. private final int _abnormalTime;
  66. protected int _periodStartTicks;
  67. protected int _periodFirstTime;
  68. private final EffectTemplate _template;
  69. // function templates
  70. private final FuncTemplate[] _funcTemplates;
  71. // initial count
  72. private final int _totalCount;
  73. // counter
  74. private int _count;
  75. // abnormal effect mask
  76. private final AbnormalEffect _abnormalEffect;
  77. // special effect mask
  78. private final AbnormalEffect[] _specialEffect;
  79. // event effect mask
  80. private final AbnormalEffect _eventEffect;
  81. // show icon
  82. private final boolean _icon;
  83. // is self effect?
  84. private boolean _isSelfEffect = false;
  85. // is passive effect?
  86. private boolean _isPassiveEffect = false;
  87. public boolean preventExitUpdate;
  88. protected final class EffectTask implements Runnable
  89. {
  90. @Override
  91. public void run()
  92. {
  93. try
  94. {
  95. _periodFirstTime = 0;
  96. _periodStartTicks = GameTimeController.getGameTicks();
  97. scheduleEffect();
  98. }
  99. catch (Exception e)
  100. {
  101. _log.log(Level.SEVERE, "", e);
  102. }
  103. }
  104. }
  105. private ScheduledFuture<?> _currentFuture;
  106. /** The Identifier of the stack group */
  107. private final String _abnormalType;
  108. /** The position of the effect in the stack group */
  109. private final byte _abnormalLvl;
  110. private boolean _inUse = false;
  111. private boolean _startConditionsCorrect = true;
  112. /**
  113. * For special behavior. See Formulas.calcEffectSuccess
  114. */
  115. private double _effectPower;
  116. private L2SkillType _effectSkillType;
  117. /**
  118. * <font color="FF0000"><b>WARNING: scheduleEffect no longer inside constructor</b></font><br>
  119. * So you must call it explicitly
  120. * @param env
  121. * @param template
  122. */
  123. protected L2Effect(Env env, EffectTemplate template)
  124. {
  125. _state = EffectState.CREATED;
  126. _skill = env.getSkill();
  127. // _item = env._item == null ? null : env._item.getItem();
  128. _template = template;
  129. _effected = env.getTarget();
  130. _effector = env.getCharacter();
  131. _lambda = template.lambda;
  132. _funcTemplates = template.funcTemplates;
  133. _count = template.counter;
  134. _totalCount = _count;
  135. // Support for retail herbs duration when _effected has a Summon
  136. int temp = template.abnormalTime;
  137. if (((_skill.getId() > 2277) && (_skill.getId() < 2286)) || ((_skill.getId() >= 2512) && (_skill.getId() <= 2514)))
  138. {
  139. if ((_effected instanceof L2ServitorInstance) || ((_effected instanceof L2PcInstance) && (((L2PcInstance) _effected).getSummon() instanceof L2ServitorInstance)))
  140. {
  141. temp /= 2;
  142. }
  143. }
  144. if (env.isSkillMastery())
  145. {
  146. temp *= 2;
  147. }
  148. _abnormalTime = temp;
  149. _abnormalEffect = template.abnormalEffect;
  150. _specialEffect = template.specialEffect;
  151. _eventEffect = template.eventEffect;
  152. _abnormalType = template.abnormalType;
  153. _abnormalLvl = template.abnormalLvl;
  154. _periodStartTicks = GameTimeController.getGameTicks();
  155. _periodFirstTime = 0;
  156. _icon = template.icon;
  157. _effectPower = template.effectPower;
  158. _effectSkillType = template.effectType;
  159. /*
  160. * Commented out by DrHouse: scheduleEffect can call onStart before effect is completly initialized on constructor (child classes constructor)
  161. */
  162. // scheduleEffect();
  163. }
  164. /**
  165. * Special constructor to "steal" buffs. Must be implemented on every child class that can be stolen.<br>
  166. * <br>
  167. * <font color="FF0000"><b>WARNING: scheduleEffect nolonger inside constructor</b></font> <br>
  168. * So you must call it explicitly
  169. * @param env
  170. * @param effect
  171. */
  172. protected L2Effect(Env env, L2Effect effect)
  173. {
  174. _template = effect._template;
  175. _state = EffectState.CREATED;
  176. _skill = env.getSkill();
  177. _effected = env.getTarget();
  178. _effector = env.getCharacter();
  179. _lambda = _template.lambda;
  180. _funcTemplates = _template.funcTemplates;
  181. _count = effect.getCount();
  182. _totalCount = _template.counter;
  183. _abnormalTime = _template.abnormalTime;
  184. _abnormalEffect = _template.abnormalEffect;
  185. _specialEffect = _template.specialEffect;
  186. _eventEffect = _template.eventEffect;
  187. _abnormalType = _template.abnormalType;
  188. _abnormalLvl = _template.abnormalLvl;
  189. _periodStartTicks = effect.getPeriodStartTicks();
  190. _periodFirstTime = effect.getTime();
  191. _icon = _template.icon;
  192. /*
  193. * Commented out by DrHouse: scheduleEffect can call onStart before effect is completly initialized on constructor (child classes constructor)
  194. */
  195. // scheduleEffect();
  196. }
  197. public int getCount()
  198. {
  199. return _count;
  200. }
  201. public int getTotalCount()
  202. {
  203. return _totalCount;
  204. }
  205. public void setCount(int newcount)
  206. {
  207. _count = Math.min(newcount, _totalCount); // sanity check
  208. }
  209. public void setFirstTime(int newFirstTime)
  210. {
  211. _periodFirstTime = Math.min(newFirstTime, _abnormalTime);
  212. _periodStartTicks -= _periodFirstTime * GameTimeController.TICKS_PER_SECOND;
  213. }
  214. public boolean getShowIcon()
  215. {
  216. return _icon;
  217. }
  218. public int getAbnormalTime()
  219. {
  220. return _abnormalTime;
  221. }
  222. public int getTime()
  223. {
  224. return (GameTimeController.getGameTicks() - _periodStartTicks) / GameTimeController.TICKS_PER_SECOND;
  225. }
  226. /**
  227. * Returns the elapsed time of the task.
  228. * @return Time in seconds.
  229. */
  230. public int getTaskTime()
  231. {
  232. if (_count == _totalCount)
  233. {
  234. return 0;
  235. }
  236. return (Math.abs((_count - _totalCount) + 1) * _abnormalTime) + getTime() + 1;
  237. }
  238. public boolean getInUse()
  239. {
  240. return _inUse;
  241. }
  242. public boolean setInUse(boolean inUse)
  243. {
  244. _inUse = inUse;
  245. if (_inUse)
  246. {
  247. _startConditionsCorrect = onStart();
  248. }
  249. else
  250. {
  251. onExit();
  252. }
  253. return _startConditionsCorrect;
  254. }
  255. public String getAbnormalType()
  256. {
  257. return _abnormalType;
  258. }
  259. public byte getAbnormalLvl()
  260. {
  261. return _abnormalLvl;
  262. }
  263. public final L2Skill getSkill()
  264. {
  265. return _skill;
  266. }
  267. public final L2Character getEffector()
  268. {
  269. return _effector;
  270. }
  271. public final L2Character getEffected()
  272. {
  273. return _effected;
  274. }
  275. public boolean isSelfEffect()
  276. {
  277. return _isSelfEffect;
  278. }
  279. public void setSelfEffect()
  280. {
  281. _isSelfEffect = true;
  282. }
  283. public boolean isPassiveEffect()
  284. {
  285. return _isPassiveEffect;
  286. }
  287. public void setPassiveEffect()
  288. {
  289. _isPassiveEffect = true;
  290. }
  291. public final double calc()
  292. {
  293. Env env = new Env();
  294. env.setCharacter(_effector);
  295. env.setTarget(_effected);
  296. env.setSkill(_skill);
  297. return _lambda.calc(env);
  298. }
  299. private final synchronized void startEffectTask()
  300. {
  301. if (_abnormalTime > 0)
  302. {
  303. stopEffectTask();
  304. final int initialDelay = Math.max((_abnormalTime - _periodFirstTime) * 1000, 5);
  305. if (_count > 1)
  306. {
  307. _currentFuture = ThreadPoolManager.getInstance().scheduleEffectAtFixedRate(new EffectTask(), initialDelay, _abnormalTime * 1000);
  308. }
  309. else
  310. {
  311. _currentFuture = ThreadPoolManager.getInstance().scheduleEffect(new EffectTask(), initialDelay);
  312. }
  313. }
  314. if (_state == EffectState.ACTING)
  315. {
  316. if (isSeflEffectType())
  317. {
  318. _effector.addEffect(this);
  319. }
  320. else
  321. {
  322. _effected.addEffect(this);
  323. }
  324. }
  325. }
  326. /**
  327. * Stop the L2Effect task and send Server->Client update packet. <B><U> Actions</U> :</B> <li>Cancel the effect in the the abnormal effect map of the L2Character</li> <li>Stop the task of the L2Effect, remove it and update client magic icon</li>
  328. */
  329. public final void exit()
  330. {
  331. exit(false);
  332. }
  333. public final void exit(boolean preventUpdate)
  334. {
  335. preventExitUpdate = preventUpdate;
  336. _state = EffectState.FINISHING;
  337. scheduleEffect();
  338. }
  339. /**
  340. * Stop the task of the L2Effect, remove it and update client magic icon.<br>
  341. * <B><U>Actions</U>:</B>
  342. * <ul>
  343. * <li>Cancel the task</li>
  344. * <li>Stop and remove L2Effect from L2Character and update client magic icon</li>
  345. * </ul>
  346. */
  347. public final synchronized void stopEffectTask()
  348. {
  349. if (_currentFuture != null)
  350. {
  351. // Cancel the task
  352. _currentFuture.cancel(false);
  353. // ThreadPoolManager.getInstance().removeEffect(_currentTask);
  354. _currentFuture = null;
  355. if (isSeflEffectType() && (getEffector() != null))
  356. {
  357. getEffector().removeEffect(this);
  358. }
  359. else if (getEffected() != null)
  360. {
  361. getEffected().removeEffect(this);
  362. }
  363. }
  364. }
  365. /**
  366. * @return effect type
  367. */
  368. public abstract L2EffectType getEffectType();
  369. /**
  370. * Notify started
  371. * @return
  372. */
  373. public boolean onStart()
  374. {
  375. if (_abnormalEffect != AbnormalEffect.NULL)
  376. {
  377. getEffected().startAbnormalEffect(_abnormalEffect);
  378. }
  379. if (_specialEffect != null)
  380. {
  381. getEffected().startSpecialEffect(_specialEffect);
  382. }
  383. if ((_eventEffect != AbnormalEffect.NULL) && (getEffected() instanceof L2PcInstance))
  384. {
  385. getEffected().getActingPlayer().startEventEffect(_eventEffect);
  386. }
  387. return true;
  388. }
  389. /**
  390. * Cancel the effect in the the abnormal effect map of the effected L2Character.
  391. */
  392. public void onExit()
  393. {
  394. if (_abnormalEffect != AbnormalEffect.NULL)
  395. {
  396. getEffected().stopAbnormalEffect(_abnormalEffect);
  397. }
  398. if (_specialEffect != null)
  399. {
  400. getEffected().stopSpecialEffect(_specialEffect);
  401. }
  402. if ((_eventEffect != AbnormalEffect.NULL) && (getEffected() instanceof L2PcInstance))
  403. {
  404. getEffected().getActingPlayer().stopEventEffect(_eventEffect);
  405. }
  406. }
  407. /**
  408. * @return true for continuation of this effect
  409. */
  410. public abstract boolean onActionTime();
  411. public final void scheduleEffect()
  412. {
  413. switch (_state)
  414. {
  415. case CREATED:
  416. {
  417. _state = EffectState.ACTING;
  418. if (_skill.isPvpSkill() && _icon && (getEffected() instanceof L2PcInstance))
  419. {
  420. SystemMessage smsg = SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
  421. smsg.addSkillName(_skill);
  422. getEffected().sendPacket(smsg);
  423. }
  424. if (_abnormalTime != 0)
  425. {
  426. startEffectTask();
  427. return;
  428. }
  429. // effects not having count or period should start
  430. _startConditionsCorrect = onStart();
  431. }
  432. case ACTING:
  433. {
  434. if (_count > 0)
  435. {
  436. _count--;
  437. if (getInUse())
  438. { // effect has to be in use
  439. if (onActionTime() && _startConditionsCorrect && (_count > 0))
  440. {
  441. return; // false causes effect to finish right away
  442. }
  443. }
  444. else if (_count > 0)
  445. { // do not finish it yet, in case reactivated
  446. return;
  447. }
  448. }
  449. _state = EffectState.FINISHING;
  450. }
  451. case FINISHING:
  452. {
  453. // If the time left is equal to zero, send the message
  454. if ((_count == 0) && _icon && (getEffected() instanceof L2PcInstance))
  455. {
  456. SystemMessage smsg3 = SystemMessage.getSystemMessage(SystemMessageId.S1_HAS_WORN_OFF);
  457. smsg3.addSkillName(_skill);
  458. getEffected().sendPacket(smsg3);
  459. }
  460. // if task is null - stopEffectTask does not remove effect
  461. if ((_currentFuture == null) && (getEffected() != null))
  462. {
  463. getEffected().removeEffect(this);
  464. }
  465. // Stop the task of the L2Effect, remove it and update client magic icon
  466. stopEffectTask();
  467. // Cancel the effect in the the abnormal effect map of the L2Character
  468. if (getInUse() || !((_count > 1) || (_abnormalTime > 0)))
  469. {
  470. if (_startConditionsCorrect)
  471. {
  472. onExit();
  473. }
  474. }
  475. if (_skill.getAfterEffectId() > 0)
  476. {
  477. L2Skill skill = SkillTable.getInstance().getInfo(_skill.getAfterEffectId(), _skill.getAfterEffectLvl());
  478. if (skill != null)
  479. {
  480. getEffected().broadcastPacket(new MagicSkillUse(_effected, skill.getId(), skill.getLevel(), 0, 0));
  481. getEffected().broadcastPacket(new MagicSkillLaunched(_effected, skill.getId(), skill.getLevel()));
  482. skill.getEffects(getEffected(), getEffected());
  483. }
  484. }
  485. }
  486. }
  487. }
  488. public Func[] getStatFuncs()
  489. {
  490. if (_funcTemplates == null)
  491. {
  492. return _emptyFunctionSet;
  493. }
  494. final ArrayList<Func> funcs = new ArrayList<>(_funcTemplates.length);
  495. Env env = new Env();
  496. env.setCharacter(_effector);
  497. env.setTarget(_effected);
  498. env.setSkill(_skill);
  499. Func f;
  500. for (FuncTemplate t : _funcTemplates)
  501. {
  502. f = t.getFunc(env, this); // effect is owner
  503. if (f != null)
  504. {
  505. funcs.add(f);
  506. }
  507. }
  508. if (funcs.isEmpty())
  509. {
  510. return _emptyFunctionSet;
  511. }
  512. return funcs.toArray(new Func[funcs.size()]);
  513. }
  514. public final void addIcon(AbnormalStatusUpdate mi)
  515. {
  516. if (_state != EffectState.ACTING)
  517. {
  518. return;
  519. }
  520. final ScheduledFuture<?> future = _currentFuture;
  521. final L2Skill sk = getSkill();
  522. if (_totalCount > 1)
  523. {
  524. if (sk.isStatic())
  525. {
  526. mi.addEffect(sk.getDisplayId(), getLevel(), sk.getBuffDuration() - (getTaskTime() * 1000));
  527. }
  528. else
  529. {
  530. mi.addEffect(sk.getDisplayId(), getLevel(), -1);
  531. }
  532. }
  533. else if (future != null)
  534. {
  535. mi.addEffect(sk.getDisplayId(), getLevel(), (int) future.getDelay(TimeUnit.MILLISECONDS));
  536. }
  537. else if (_abnormalTime == -1)
  538. {
  539. mi.addEffect(sk.getDisplayId(), getLevel(), _abnormalTime);
  540. }
  541. }
  542. public final void addPartySpelledIcon(PartySpelled ps)
  543. {
  544. if (_state != EffectState.ACTING)
  545. {
  546. return;
  547. }
  548. final ScheduledFuture<?> future = _currentFuture;
  549. final L2Skill sk = getSkill();
  550. if (future != null)
  551. {
  552. ps.addPartySpelledEffect(sk.getDisplayId(), getLevel(), (int) future.getDelay(TimeUnit.MILLISECONDS));
  553. }
  554. else if (_abnormalTime == -1)
  555. {
  556. ps.addPartySpelledEffect(sk.getDisplayId(), getLevel(), _abnormalTime);
  557. }
  558. }
  559. public final void addOlympiadSpelledIcon(ExOlympiadSpelledInfo os)
  560. {
  561. if (_state != EffectState.ACTING)
  562. {
  563. return;
  564. }
  565. final ScheduledFuture<?> future = _currentFuture;
  566. final L2Skill sk = getSkill();
  567. if (future != null)
  568. {
  569. os.addEffect(sk.getDisplayId(), getLevel(), (int) future.getDelay(TimeUnit.MILLISECONDS));
  570. }
  571. else if (_abnormalTime == -1)
  572. {
  573. os.addEffect(sk.getDisplayId(), getLevel(), _abnormalTime);
  574. }
  575. }
  576. public int getLevel()
  577. {
  578. return getSkill().getLevel();
  579. }
  580. public int getPeriodStartTicks()
  581. {
  582. return _periodStartTicks;
  583. }
  584. public EffectTemplate getEffectTemplate()
  585. {
  586. return _template;
  587. }
  588. public double getEffectPower()
  589. {
  590. return _effectPower;
  591. }
  592. public L2SkillType getSkillType()
  593. {
  594. return _effectSkillType;
  595. }
  596. public boolean canBeStolen()
  597. {
  598. if (!effectCanBeStolen() || (getEffectType() == L2EffectType.TRANSFORMATION) || getSkill().isPassive() || getSkill().isToggle() || getSkill().isDebuff() || getSkill().isHeroSkill() || getSkill().isGMSkill() || getSkill().isStatic() || !getSkill().canBeDispeled())
  599. {
  600. return false;
  601. }
  602. return true;
  603. }
  604. /**
  605. * @return {@code true} if effect itself can be stolen, {@code false} otherwise
  606. */
  607. protected boolean effectCanBeStolen()
  608. {
  609. return false;
  610. }
  611. /**
  612. * Return bit flag for current effect
  613. * @return int flag
  614. */
  615. public int getEffectFlags()
  616. {
  617. return 0;
  618. }
  619. @Override
  620. public String toString()
  621. {
  622. return "L2Effect [_skill=" + _skill + ", _state=" + _state + ", _period=" + _abnormalTime + "]";
  623. }
  624. public boolean isSeflEffectType()
  625. {
  626. return false;
  627. }
  628. public void decreaseForce()
  629. {
  630. }
  631. public void increaseEffect()
  632. {
  633. }
  634. public int getForceEffect()
  635. {
  636. return 0;
  637. }
  638. public boolean isBuffEffect()
  639. {
  640. return false;
  641. }
  642. public boolean isDebuffEffect()
  643. {
  644. return false;
  645. }
  646. @Override
  647. public boolean triggersChanceSkill()
  648. {
  649. return false;
  650. }
  651. @Override
  652. public int getTriggeredChanceId()
  653. {
  654. return 0;
  655. }
  656. @Override
  657. public int getTriggeredChanceLevel()
  658. {
  659. return 0;
  660. }
  661. @Override
  662. public ChanceCondition getTriggeredChanceCondition()
  663. {
  664. return null;
  665. }
  666. }